X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=psp%2Fpsp.c;h=6b65c2a641e97a684588b5cb51b243841f5b2312;hb=f060b8b9120fed821662f4412dc6bd1a4fbae00e;hp=cdf26ae2436a3c1858ede9289ce66e7dcf8af996;hpb=426ecc582f3f6f3d04f7b7ae25b548be7178c4fd;p=libpicofe.git diff --git a/psp/psp.c b/psp/psp.c index cdf26ae..6b65c2a 100644 --- a/psp/psp.c +++ b/psp/psp.c @@ -44,7 +44,12 @@ int main() thid = sceKernelCreateThread("pico_main", (SceKernelThreadEntry) pico_main, 32, 0x2000, PSP_THREAD_ATTR_USER, NULL); if (thid >= 0) sceKernelStartThread(thid, 0, 0); +#ifndef GCOV sceKernelExitDeleteThread(0); +#else + while (engineState != PGS_Quit) + sceKernelDelayThread(1024 * 1024); +#endif return 0; }