feat(mister): support latest RetroAchievements cores#1095
Conversation
📝 WalkthroughWalkthroughMiSTer RetroAchievements support adds launcher definitions for additional systems, extends launcher-to-set mappings, and updates tests for mappings, same-directory behavior, launcher existence, and system inheritance. ChangesRetroAchievements launcher support
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 `@pkg/platforms/mister/launchers_test.go`:
- Around line 755-763: The same-directory regression cases only verify helper
input rather than actual launcher wiring. Update the relevant test around
CreateLaunchers to inspect each generated launcher’s effective configuration,
asserting set name, RBF path, and SetNameSameDir; alternatively extract and test
a pure launcher-configuration helper while preserving the existing expected
values.
🪄 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 Plus
Run ID: 30d32814-edfe-4e06-b34c-d5a1f561e06d
📒 Files selected for processing (2)
pkg/platforms/mister/launchers.gopkg/platforms/mister/launchers_test.go
| {launcherID: "RAAtari7800", wantSetName: "RA_Atari7800", wantSameDir: true}, | ||
| {launcherID: "RAS32X", wantSetName: "RA_S32X", wantSameDir: true}, | ||
| {launcherID: "RASaturn", wantSetName: "RA_Saturn", wantSameDir: true}, | ||
| {launcherID: "RAFDS", wantSetName: "RA_FDS", wantSameDir: false}, | ||
| {launcherID: "RAGameboyColor", wantSetName: "RA_GBC", wantSameDir: false}, | ||
| {launcherID: "RAGameGear", wantSetName: "RA_GameGear", wantSameDir: false}, | ||
| {launcherID: "RANeoGeoCD", wantSetName: "RA_NeoGeoCD", wantSameDir: false}, | ||
| {launcherID: "RASuperGameboy", wantSetName: "RA_SGB", wantSameDir: false}, | ||
| {launcherID: "RATurboGrafx16CD", wantSetName: "RA_TurboGrafx16CD", wantSameDir: false}, |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟠 Major | 🏗️ Heavy lift
Exercise the actual launcher wiring in the same-directory regression test.
These cases pass tc.wantSameDir directly into configureAltCoreWithDefaultSetName, so they only test that the helper stores a supplied value. They would still pass if a launcher were accidentally wired through the wrong helper. Assert the effective configuration from each CreateLaunchers entry (including set name, RBF path, and SetNameSameDir) or expose a pure launcher-configuration helper.
As per coding guidelines, **/*.go: Write tests for all new code — see TESTING.md and pkg/testing/README.md.
🤖 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 `@pkg/platforms/mister/launchers_test.go` around lines 755 - 763, The
same-directory regression cases only verify helper input rather than actual
launcher wiring. Update the relevant test around CreateLaunchers to inspect each
generated launcher’s effective configuration, asserting set name, RBF path, and
SetNameSameDir; alternatively extract and test a pure launcher-configuration
helper while preserving the existing expected values.
Source: Coding guidelines
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
same_dirwhere no separate RBF existsCloses #1051
Closes #1056
Summary by CodeRabbit