Avoid getting stuck in a load-loop when auto-loading a bad savestate. Make some code clearer.

This commit is contained in:
Henrik Rydgård committed 2025-05-16 01:55:18 +02:00
1 parent a698486f9c
commit 9a86101769
8 files changed
+70 -55

No files matched your search

+3 -6
View File
@@ -1139,15 +1139,12 @@ double g_lastSaveTime = -1.0;
lastSaveDataGeneration = saveDataGeneration;
}
void Cleanup() {
// TODO: Handle this better.
bool PollRestartNeeded() {
if (needsRestart) {
std::string error_string;
PSP_Reboot(&error_string);
System_Notify(SystemNotification::BOOT_DONE);
System_Notify(SystemNotification::DISASSEMBLY);
needsRestart = false;
return true;
}
return false;
}
void Init()