mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00: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
@@ -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...
|
||||
|
||||
Reference in new issue
Block a user