Files
romm/backend/handler
Mustafa YAMAN 2c727c9c5b fix(cloud-sync): remap web-player states into RetroArch's numbered load slots
States have no `slot` column (unlike saves), so a state created through
RomM's own web player -- named with a display label and timestamp, not a
RetroArch slot number -- was surfaced in the cloud-sync manifest under its
raw file name. Verified live: RetroArch's Load State menu only ever offers
numbered slots 0-999, so a synced file named otherwise downloads
successfully but is never reachable from that menu.

Mirrors the reasoning already used for the retroarch-webdav-romm shim
project's manifest builder: states are grouped by (rom, emulator, slot
suffix) via the file name's trailing .state/.state<N>/.state.auto pattern,
and the newest state in each bucket -- regardless of whether it came from
RetroArch itself or the web player -- is advertised under the canonical
name RetroArch's own upload for that slot would carry. GET/DELETE resolve
that canonical name back to the same bucket via resolve_state_by_slot, so
serving and deleting agree with what the manifest advertised even when the
underlying row's real file name differs.
2026-07-24 16:35:08 +03:00
..
2025-12-07 12:19:13 -05:00