mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
`save_id` collided with two other meanings in the codebase: `Save` is a model, and `DeviceSaveSync.save_id` is a foreign key to it. Neither is what this field holds, which is the on-disk name an emulator gives a game's saves. It becomes `save_target`, and `save_usage`, which said nothing about what it decided, becomes `save_target_layout`. Both carry a `doc=` so the meaning is at hand where the columns are read. The per-file copies are gone. Nothing read `RomFile.save_id`, and the per-file `title_id` and `title_version` only fed display chips, while the category derived from the binary content type is what actually drives update and DLC behaviour and stays. Save layout belongs to a game rather than to one of its files, so a client can no longer read a file's value and build a wrong directory from it.