X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=psp%2Fmain.c;h=bf3069c0015304058d5dc3cc9271f71be723ba8b;hb=677b5dd8142b2f98b22a26e4d1757355cba4bdc5;hp=dbe20b7c122d2b6c1352f760a2ceb07a1724e785;hpb=f060b8b9120fed821662f4412dc6bd1a4fbae00e;p=libpicofe.git diff --git a/psp/main.c b/psp/main.c index dbe20b7..bf3069c 100644 --- a/psp/main.c +++ b/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;