Skip to content

Commit 6c7372e

Browse files
committed
Make AbortSaves blocking
1 parent d380203 commit 6c7372e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/System/RTEError.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ bool RTEError::DumpAbortSave() {
588588
bool success = false;
589589
if (g_ActivityMan.GetActivity() && g_ActivityMan.GetActivity()->CanBeUserSaved()) {
590590
success = g_ActivityMan.SaveCurrentGame("AbortSave");
591+
g_ActivityMan.WaitForSaveGameTask(); // Ensure the save is complete before the user potentially aborts or restarts the game.
591592
}
592593
return success;
593594
}

0 commit comments

Comments
 (0)