Look for info file in root dir as well for GOG V1 API#545
Conversation
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughThis change moves V1 executable probing earlier in GOG install detection and updates relative-path resolution to compute the main executable path against the install root instead of the game directory's parent, altering when and how V1 layouts are recognized and resolved. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
app/src/main/java/app/gamenative/service/gog/GOGManager.kt (1)
586-596: Good addition of early V1 detection at install root.The early-exit path for V1 layouts is a clean improvement. One small nit:
exeon line 588 is never reassigned, so it can beval.Suggested fix
- var exe = getGameExecutable(installPath, installDirFile) + val exe = getGameExecutable(installPath, installDirFile)🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@app/src/main/java/app/gamenative/service/gog/GOGManager.kt` around lines 586 - 596, The local variable "exe" in GOGManager.kt is declared as var but never reassigned; change it to an immutable val to reflect intent and improve readability: replace "var exe = getGameExecutable(installPath, installDirFile)" with an immutable declaration and keep the subsequent early-return logic using that value (referenced in getGameExecutable and installDirFile).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@app/src/main/java/app/gamenative/service/gog/GOGManager.kt`:
- Around line 586-596: The local variable "exe" in GOGManager.kt is declared as
var but never reassigned; change it to an immutable val to reflect intent and
improve readability: replace "var exe = getGameExecutable(installPath,
installDirFile)" with an immutable declaration and keep the subsequent
early-return logic using that value (referenced in getGameExecutable and
installDirFile).
38a4e42 to
7b87d7f
Compare
Summary by cubic
Improves GOG V1 game detection by checking the install root for goggame-*.info and the executable before scanning subfolders. Fixes executable path resolution to be relative to the install root so games launch correctly.
Written for commit 7b87d7f. Summary will update on new commits.
Summary by CodeRabbit