Files
romm/backend/handler/sync
Georges-Antoine Assi 0a643a3e8e fix(sync): resolve RetroArch save names to the core's platform (#5533)
* fix(sync): resolve RetroArch save names to the core's platform

A RetroArch Cloud Sync path names a game by file name only, so a name
shared across platforms (a PS1 and a Saturn "Road Rash (USA)") always
resolved to the lowest-id ROM. Uploads landed on the wrong ROM and the
manifest hid the other platform's saves.

Map each RetroArch core folder to the platforms it runs and prefer a ROM
on one of them, including one that only owns a file of that name. An
unknown core, or none, keeps the previous id order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(sync): build the RetroArch arcade core platforms from the arcade sets

Addresses Greptile review on #5533: MAME and FBNeo left out the mame,
mame-advmame, fbneo and fba platforms, so a same-named Neo Geo ROM could
take over a MAME ROM's saves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(sync): apply code-review fixes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(sync): apply simplify cleanups

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(sync): cover a manifest with one name under two cores (review-polish)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(sync): one core map, per-disc state slots, PSP serials on PSP

- Move the EmulatorJS platform-to-cores map to the backend and serve it on
  the heartbeat; RetroArch core platforms invert it plus a top-up for
  RetroArch-only cores.
- Map fbneo to "FinalBurn Neo" and dosbox_pure to "DOSBox-pure", the
  library names the cores report to RetroArch.
- Resolve states by file name like saves, with a slot per disc-named state,
  so a disc folder game's state follows its save.
- Resolve PSP serial-map titles with PPSSPP's platforms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 16:57:39 -05:00
..
2026-03-14 22:13:38 -04:00