gamefix: Added multifix support + added slay the spire 2 fix#1160
gamefix: Added multifix support + added slay the spire 2 fix#1160unbelievableflavour wants to merge 1 commit intoutkarshdalal:masterfrom
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughAdds a composite game-fix implementation (KeyedCompositeGameFix/CompositeGameFix), a new Steam composite fix for game ID 2868840, updates registry ordering for Steam fixes, and adds tests validating ordered, non-short-circuiting application and keyed properties. Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
81a3abb to
8bbaffa
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@app/src/main/java/app/gamenative/gamefixes/types/KeyedCompositeGameFix.kt`:
- Around line 22-27: The loop over fixes in KeyedCompositeGameFix.kt currently
calls fix.apply(context, gameId, installPath, installPathWindows, container)
without guarding against exceptions so one thrown fix aborts the composite; wrap
each call to fix.apply in a try-catch that catches Throwable (or Exception),
logs the error (including which fix failed and contextual values like gameId)
and sets allSucceeded = false before continuing to the next fix, ensuring the
method still returns the aggregated allSucceeded result after the loop.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 0b760ab5-75be-4760-89b3-5d73008d27f9
📒 Files selected for processing (8)
app/src/main/java/app/gamenative/gamefixes/GOG_1453375253.ktapp/src/main/java/app/gamenative/gamefixes/GameFixesRegistry.ktapp/src/main/java/app/gamenative/gamefixes/STEAM_2868840.ktapp/src/main/java/app/gamenative/gamefixes/STEAM_413150.ktapp/src/main/java/app/gamenative/gamefixes/types/KeyedCompositeGameFix.ktapp/src/main/java/app/gamenative/gamefixes/types/WineEnvVarFix.ktapp/src/test/java/app/gamenative/gamefixes/types/KeyedCompositeGameFixTest.ktapp/src/test/java/app/gamenative/gamefixes/types/WineEnvVarFixTest.kt
🚧 Files skipped from review as they are similar to previous changes (1)
- app/src/main/java/app/gamenative/gamefixes/STEAM_2868840.kt
app/src/main/java/app/gamenative/gamefixes/types/KeyedCompositeGameFix.kt
Show resolved
Hide resolved
8bbaffa to
02a3974
Compare
02a3974 to
ef752a9
Compare
Description
Added the launch arg fix as gamefix. So it works as a sensible default even when known config is not applied.
Recording
No recording. But verified in the discord and reddit multiple times.
https://discord.com/channels/1378308569287622737/1490412953260920905
Checklist
#code-changes, I have discussed this change there and it has been green-lighted. If I do not have access, I have still provided clear context in this PR. If I skip both, I accept that this change may face delays in review, may not be reviewed at all, or may be closed.CONTRIBUTING.md.Summary by cubic
Added multi-fix support via
KeyedCompositeGameFix. Slay the Spire 2 (STEAM_Fix_2868840) now forces Vulkan via launch arg and applies Wine env vars for ICU and .NET; registered inGameFixesRegistry.Written for commit ef752a9. Summary will update on new commits.
Summary by CodeRabbit
New Features
Bug Fixes
Tests