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:
notaz 2008-07-18 13:04:38 +00:00
parent f0f0d2df76
commit 2b02d6e533
9 changed files with 79 additions and 58 deletions

View file

@ -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