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

-13
View File
@@ -702,19 +702,6 @@ BootState PSP_Reboot(std::string *error_string) {
return PSP_Init(PSP_CoreParameter(), error_string);
}
void PSP_BeginHostFrame() {
if (gpu) {
gpu->BeginHostFrame();
}
}
void PSP_EndHostFrame() {
if (gpu) {
gpu->EndHostFrame();
}
SaveState::Cleanup();
}
void PSP_RunLoopWhileState() {
// We just run the CPU until we get to vblank. This will quickly sync up pretty nicely.
// The actual number of cycles doesn't matter so much here as we will break due to CORE_NEXTFRAME, most of the time hopefully...