X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=psp%2Fmain.c;h=bf3069c0015304058d5dc3cc9271f71be723ba8b;hb=88bfc63d316f9a19ce6d63421757f520cb4d6df9;hp=befc427fa08fd2378eb9664472b68c2c1dba9252;hpb=93c0d147a19160bcf970edac8d0e27f93537ae8d;p=libpicofe.git diff --git a/psp/main.c b/psp/main.c index befc427..bf3069c 100644 --- a/psp/main.c +++ b/psp/main.c @@ -65,10 +65,19 @@ int pico_main(void) } break; + case PGS_Suspending: + while (engineState == PGS_Suspending) + psp_wait_suspend(); + break; + case PGS_RestartRun: engineState = PGS_Running; case PGS_Running: + if (psp_unhandled_suspend) { + psp_resume_suspend(); + emu_HandleResume(); + } emu_Loop(); #ifdef GPROF goto endloop;