mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 04:19:57 -04:00
Let --probe-fs wait for its commits without marking the process as exiting.
The probe waited for each Commit's background thread with fs_save_flush, which since Quit keeps saves safe also marks
the process as exiting: every later Commit was refused ("the game is closing") and 20 of the 160 checks failed. It
now waits with save_wait_commit; all checks pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1480,10 +1480,11 @@ static void probe_restart(const uint64_t *uid) {
|
||||
CHECK(RES(S_MOUNT_SAVE, U("save"), U(uid)) == 0, "MountSaveData after a restart");
|
||||
}
|
||||
|
||||
// Commit through the override, then wait for its background thread, as the checks read the disk next.
|
||||
// Commit through the override, then wait for its background thread, as the checks read the disk next. Not with
|
||||
// fs_save_flush: that also marks the process as exiting, and every later Commit of the probe would be refused.
|
||||
static uint32_t tx_commit(void) {
|
||||
uint32_t r = RES(S_COMMIT, U("save"));
|
||||
fs_save_flush();
|
||||
save_wait_commit();
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user