fix(mister): identify MGL-observed games by the file they load - #1432
fix(mister): identify MGL-observed games by the file they load#1432wizzomafizzo wants to merge 1 commit into
Conversation
The Zaparoo Main fork rewrites /tmp/ACTIVEGAME with the MGL it was started from, so the tracker sees a Zaparoo launch twice: by the game path DoLaunch wrote and through /media/fat/.LASTLAUNCH.mgl. loadGameLocked resolved the MGL to its <file> path but had already taken filename from the MGL, so its dedupe id was Genesis/.LASTLAUNCH.mgl instead of the game's own id. Take it from the resolved file.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe tracker now derives MGL launch identity from the loaded game file. A test verifies the system, path, ID, and media match a direct launch. ChangesMGL game identity
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to MGL launches now identify the loaded game rather than the wrapper file, preventing duplicate game observations. The covered identity and direct-launch matching behavior is ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
/tmp/ACTIVEGAMEwith the MGL it was started from (itsuser_io_init()hook runs again after theapp_restart()re-exec that follows aload_core), so a Zaparoo launch is observed by the tracker twice: once by the game path DoLaunch wrote and once through/media/fat/.LASTLAUNCH.mgl.loadGameLockedalready resolved the MGL to its<file>path, but had takenfilenamefrom the MGL beforehand, so its dedupe id wasGenesis/.LASTLAUNCH.mglrather than the game's own id.Genesis/<game>and compares equal to what DoLaunch publishes for the same launch.LoadCoreonce the core name arrives.Summary by CodeRabbit