fix(): Maybe? who knows#5
Conversation
📝 WalkthroughWalkthroughA one-line update to ChangesNative Core Name Recognition
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@support/zaparoo/alt_launcher.cpp`:
- Line 550: zaparoo_is_native_core() now compares the core name to "Zaparoo
Frontend" but existing installations may still report "Zaparoo Launcher" and use
the persisted CRT state file zaparoo_launcher_crt.bin; update
zaparoo_is_native_core() to do a case-insensitive match against both "Zaparoo
Frontend" and the legacy "Zaparoo Launcher" (or normalize reported core names)
and add a compatibility path when loading/saving the CRT state so
zaparoo_launcher_crt.bin is accepted/mapped to the new core name; ensure the
logic references the static const char *name and the CRT state filename
zaparoo_launcher_crt.bin so both identification and state file compatibility are
handled.
🪄 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: 2db6b0d9-106c-4836-acbf-4fd246a88f22
📒 Files selected for processing (1)
support/zaparoo/alt_launcher.cpp
| bool zaparoo_is_native_core(void) | ||
| { | ||
| static const char *name = "Zaparoo Launcher"; | ||
| static const char *name = "Zaparoo Frontend"; |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Search for references to "Zaparoo Launcher" string in the codebase
# to ensure all references are updated consistently.
echo "=== Searching for 'Zaparoo Launcher' references ==="
rg -i "zaparoo.launcher" --type=cpp --type=h -C2
echo ""
echo "=== Searching for 'Zaparoo Frontend' references ==="
rg -i "zaparoo.frontend" --type=cpp --type=h -C2
echo ""
echo "=== Checking for any .rbf files that might contain core name metadata ==="
fd -e rbf -e RBF -i zaparooRepository: ZaparooProject/Main_MiSTer
Length of output: 6224
Native-core CRT auto-init: confirm the core RBF now reports "Zaparoo Frontend"
support/zaparoo/alt_launcher.cppzaparoo_is_native_core()now matches the core internal name against"Zaparoo Frontend"(case-insensitive).- A search in
*.cpp/hforzaparoo.launcherfinds menu/state-file naming (e.g.,zaparoo_launcher_crt.bin) but not an old"Zaparoo Launcher"core-name literal. - This checkout contains no
.rbf/.RBFartifacts to inspect, so it’s not possible here to confirm the shipped core RBF reports"Zaparoo Frontend"—if it still reports"Zaparoo Launcher", native CRT auto-init won’t trigger for existing installations. - Check backward compatibility for the persisted CRT state file
zaparoo_launcher_crt.binif it’s intended to map to the pre-change naming.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@support/zaparoo/alt_launcher.cpp` at line 550, zaparoo_is_native_core() now
compares the core name to "Zaparoo Frontend" but existing installations may
still report "Zaparoo Launcher" and use the persisted CRT state file
zaparoo_launcher_crt.bin; update zaparoo_is_native_core() to do a
case-insensitive match against both "Zaparoo Frontend" and the legacy "Zaparoo
Launcher" (or normalize reported core names) and add a compatibility path when
loading/saving the CRT state so zaparoo_launcher_crt.bin is accepted/mapped to
the new core name; ensure the logic references the static const char *name and
the CRT state filename zaparoo_launcher_crt.bin so both identification and state
file compatibility are handled.
Summary by CodeRabbit
Release Notes