Core: Process stepping on other platforms.

This includes Android.
This commit is contained in:
Unknown W. Brackets committed 2018-06-06 17:31:56 -07:00
1 parent c15ade3b1b
commit 2e2d8f2989
4 files changed
+29 -19

No files matched your search

+14
View File
@@ -430,10 +430,24 @@ void PSP_EndHostFrame() {
}
}
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...
int blockTicks = usToCycles(1000000 / 10);
// Run until CORE_NEXTFRAME
while (coreState == CORE_RUNNING || coreState == CORE_STEPPING) {
PSP_RunLoopFor(blockTicks);
}
}
void PSP_RunLoopUntil(u64 globalticks) {
SaveState::Process();
if (coreState == CORE_POWERDOWN || coreState == CORE_ERROR) {
return;
} else if (coreState == CORE_STEPPING) {
Core_ProcessStepping();
return;
}
mipsr4k.RunLoopUntil(globalticks);