mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 02:24:09 +01:00
code-review xhigh findings. Holding the bytes was the tick's job, so the paths that skipped the tick skipped it too: Save & Quit and the in-game Save button lost the save outright when the upload failed, and told the player it had been kept. And a capture the tick failed on stayed behind after a later save succeeded, so the app shell uploaded it afterwards as the newest version in the slot, rolling the player back. The hold now lives in the write itself, after the guards, so a voided write holds nothing and a write the server takes leaves nothing behind. The notices are gated on what is actually held. Save & Quit also handed the core's own view of the SRAM to the upload instead of a standalone copy. Alongside: - The store gives up when another tab holds an upgrade off, rather than waiting on an event that never comes and wedging every later pass. - A drain in flight when the shell goes cannot arm a retry that outlives it. - One pass fetches a rom once however many of its captures it is carrying. - The toast host looks at the screen when it mounts, not only when it changes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QTsTgdoBinvvxzXeLUjBmV