Skip to content

bug: legacy (no slot) save files are synced to the wrong location #1478

Description

@2manyvcos

What happened

For one of my retroarch-mgba games, I have a legacy (no-slot) save file.
The save is stored on the RomM server at …/assets/users/xyz/saves/gba/16/Game1.srm.

Since upgrading from 0.25.0 to 0.27.0, when playing the game in Steam and saving, the new save file is being synced (RomM 5.0.0) to the wrong location: …/assets/users/xyz/saves/gba/16/retroarch-mgba/Game1.srm (note the retroarch-mgba subdirectory).

Because of this, the new save is not available from the web (emulator.js) or from other clients.
Also, when switching save slots in Steam or clicking „Sync All Saves Now“ in the plugin menu, the new state is being lost, too. The file exists on the server, but is completely being ignored; the old save at the original location is used instead.

This effectively breaks saving, because the original save is always used instead of the new one.

Plugin version

0.27.0

Repro steps

  1. Start with a game without any saves
  2. Upload a save to the RomM server (using the web interface)
  3. Go to Steam, sync saves, keep the save as legacy
  4. Create an empty „default“ slot but do not use it; select the legacy slot instead (this was done automatically in my case)
  5. Start the game, play a bit, save
  6. The new save is successfully being synced to the server, but in the wrong location:
    • when starting the game in Steam again, the new save still works
    • on the RomM server, it looks like the new save was uploaded, but when loading the save using emulator.js, the old save is being used instead
    • when switching to the default save slot in Steam and switching back to legacy, the new save is being lost
    • when clicking „Sync All Saves Now“ in RomM Sync > Settings, the new save is also being lost

Expected behavior

The save should be stored at the correct location.
After syncing, the new save state should be available for all clients instead of the old one.

RetroDECK version

0.10.9b

Decky Loader version

3.2.6

Log excerpt


Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions