mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 04:03:49 +01:00
Avoid getting stuck in a load-loop when auto-loading a bad savestate. Make some code clearer.
This commit is contained in:
1 parent
a698486f9c
commit
9a86101769
8 files changed
+70
-55
No files matched your search
+3
-6
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user