mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 14:57:46 -04:00
uncommited code for 151 release (PSP suspend, file browser, etc)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@554 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
6589c840ca
commit
dfa8d77a42
8 changed files with 78 additions and 57 deletions
14
psp/main.c
14
psp/main.c
|
@ -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