docs(player): the seed fires a save tick, so the subscription stays below it

This commit is contained in:
f0rthelulz
2026-09-06 14:18:08 -05:00
parent 949d0e0adb
commit 8af8ca8735

View File

@@ -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;