X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fpsp%2Fmain.c;h=bf3069c0015304058d5dc3cc9271f71be723ba8b;hb=ea08c2967b1c61e3b81c911dfd5eb7a0e72a28bf;hp=dbe20b7c122d2b6c1352f760a2ceb07a1724e785;hpb=7d0143a2de0f5551c90b29c1b1ee94e9c52b0952;p=picodrive.git diff --git a/platform/psp/main.c b/platform/psp/main.c index dbe20b7..bf3069c 100644 --- a/platform/psp/main.c +++ b/platform/psp/main.c @@ -66,13 +66,18 @@ int pico_main(void) break; case PGS_Suspending: - psp_wait_suspend(); + 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;