mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
docs(player): the seed fires a save tick, so the subscription stays below it
This commit is contained in:
@@ -290,6 +290,7 @@ async function installAutoSaveSync() {
|
||||
if (!emulator?.gameManager) return;
|
||||
const tracker = createSaveSyncTracker();
|
||||
// getSaveFile() dumps the core's SRAM first, so the seed is what it holds now.
|
||||
// That dump fires a saveSaveFiles tick, so the subscription must stay below it.
|
||||
tracker.seed(await hashSaveFile(emulator.gameManager.getSaveFile()));
|
||||
let uploading = false;
|
||||
autoSaveSyncActive = true;
|
||||
|
||||
Reference in New Issue
Block a user