mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
uncommited code for 151 release (PSP suspend, file browser, etc)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@554 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
f0f0d2df76
commit
2b02d6e533
9 changed files with 79 additions and 58 deletions
|
@ -69,11 +69,15 @@ int pico_main(void)
|
|||
break;
|
||||
|
||||
case PGS_Suspending:
|
||||
while (engineState == PGS_Suspending || engineState == PGS_SuspendAck) {
|
||||
if (engineState == PGS_Suspending)
|
||||
engineState = PGS_SuspendAck;
|
||||
while (engineState == PGS_Suspending)
|
||||
psp_wait_suspend();
|
||||
}
|
||||
break;
|
||||
|
||||
case PGS_SuspendWake:
|
||||
psp_unhandled_suspend = 0;
|
||||
psp_resume_suspend();
|
||||
emu_HandleResume();
|
||||
engineState = engineStateSuspend;
|
||||
break;
|
||||
|
||||
case PGS_RestartRun:
|
||||
|
@ -81,8 +85,10 @@ int pico_main(void)
|
|||
|
||||
case PGS_Running:
|
||||
if (psp_unhandled_suspend) {
|
||||
psp_unhandled_suspend = 0;
|
||||
psp_resume_suspend();
|
||||
emu_HandleResume();
|
||||
break;
|
||||
}
|
||||
emu_Loop();
|
||||
#ifdef GPROF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue