mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 02:24:09 +01:00
simplify findings (reuse, simplification, efficiency, altitude). Behaviour it fixes along the way: - A state load held back the screen and the sound but not the writes, and dumping the SRAM for the new baseline fires a tick of its own: a tick that had already read the restored SRAM found it stable and changed, and uploaded the restore before the baseline landed. A state now closes the same write gate a save load does, and quick load goes through the same window. - Save & Quit rewrote the held row without the frame the tick had stored. The write now owns which frame goes with the bytes it is given, so no caller can pass the wrong one, and it does not write out again bytes already held. - A save whose first capture failed took a new screenshot on every retry. - The shell kept polling the store every 30s while offline, and in game kept a timer armed for a save only the running session would hand over. - A store upgrade wiped every row, which after release would drop users' unsynced progress. It now keeps them and only drops stores it stopped using. Reuse and one home per rule: - The save, state and screenshot files are built by the API modules for both the live uploads and the retries. - The core compatibility rule is shared by the launch screen and the in-game picker. - The banner uses useDelayedFlag, the toast host useEventListener, the retry refresh useRomSync().refetchRom, the refusal text errorMessage(), and the player's notices useSnackbar. - The ledger of rows the server took is read in list() alone, and the retry judges a refused upload and a failed request in one place. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QTsTgdoBinvvxzXeLUjBmV