Repository navigation
fix(zaparoo): keep menu snow visible without a frontend - #30
Conversation
The Zaparoo menu core holds idle video black so a frontend start has no snow flash, and on its own shows snow only behind the OSD. Kiosk mode never opens the OSD, so with the frontend off the screen stayed black. Set menu status[10] whenever no frontend owns or is about to take the screen, which the menu core reads as permission to show snow.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds menu-background initialization and polling. The menu’s status bit 10 reflects whether snow is allowed, based on menu state and alternate-launcher screen ownership. ChangesMenu background control
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant ZaparooPoll
participant MenuBackground
participant AltLauncher
participant MainMenuStatus
ZaparooPoll->>MenuBackground: zaparoo_menu_bg_poll()
MenuBackground->>AltLauncher: alt_launcher_menu_snow_allowed()
AltLauncher-->>MenuBackground: snow eligibility
MenuBackground->>MainMenuStatus: update status bit 10 when state changes
Merge Risk: ⚪ Minimal · up to No identified issue blocks merging after normal checks. The matching menu-core change and hardware behavior still need validation. 🚥 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 8 functions across 6 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 |
zaparoo_osd openwas in effect, and went black again on close.status[10]whenever no frontend owns or is about to take the screen. The menu core reads it as permission to show snow.zaparoo_menu_bg_init()writes the bit right after the saved menu status is loaded. F1 saves the whole status word, so a stale bit could otherwise flash snow ahead of a frontend start.zaparoo_menu_bg_poll()runs fromzaparoo_poll()and followsalt_launcher_menu_snow_allowed(): no frontend running, queued or respawning, and none waiting to resume after a script.ZAPAROO_FORK.mdgains row 46../docker-build.shbuildsMiSTer_Zaparoo. Not tested on hardware.Closes ZaparooProject/zaparoo-frontend#503
Summary by CodeRabbit