fix(zaparoo): leave ACTIVEGAME alone when started from Zaparoo's temp MGL - #24
fix(zaparoo): leave ACTIVEGAME alone when started from Zaparoo's temp MGL#24wizzomafizzo wants to merge 1 commit into
Conversation
… MGL zaparoo_active_game_set_core() runs on every user_io_init(), including the app_restart() re-exec after a load_core, and wrote the MGL path for any .mgl start. Zaparoo Core and mrext send load_core with /media/fat/.LASTLAUNCH.mgl after writing the real game path themselves, so /tmp/ACTIVEGAME flipped from the game to the MGL about a second after every launch. Nothing wrote the game back: menu.cpp skips recent_update() while an MGL is processing. Skip the write for that one path. It is rewritten on every launch, so it never identifies a game. Bare-core starts still clear, menu-selected MRA and MGL starts still write, and set_file is unchanged.
|
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 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe active game tracker now leaves ChangesActive game tracking
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The launcher temporary MGL no longer replaces the actual game path in ACTIVEGAME, preserving active-game tracking across re-execution without changing normal core or menu-selected launch behavior. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (1 skipped: 1 unsupported.)
✨ 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 |
Summary
zaparoo_active_game_set_core()runs on everyuser_io_init(), including theapp_restart()re-exec after aload_core, and wrote the MGL path for any.mglstart. Zaparoo Core and mrext sendload_core /media/fat/.LASTLAUNCH.mglafter writing the real game path themselves, so about a second after a launch/tmp/ACTIVEGAMEflipped from the game to the MGL. Nothing wrote the game back:menu.cppskipsrecent_update()while an MGL is processing.set_fileis unchanged.ZAPAROO_FORK.mdnotes the exception.Reported against Core 2.17.1 by a user polling
/tmp/ACTIVEGAMEafter a Frontend launch. Core's tracker already resolves an MGL value to the game it loads, so playtime and history were unaffected; the Core-side id follow-up is ZaparooProject/zaparoo-core#1432.Validation
./docker-build.sh clean && ./docker-build.sh.LASTLAUNCH.mgl), returning to the menu cleared it, andload_coreof_Console/Game Gear.mglstill wrote that MGL's path.Summary by CodeRabbit
Bug Fixes
Documentation