From f060b8b9120fed821662f4412dc6bd1a4fbae00e Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 25 Nov 2007 16:45:26 +0000 Subject: [PATCH] minor adjustments git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@305 be3aeb3a-fb24-0410-a615-afba39da0efa --- psp/Makefile | 9 ++++++++- psp/emu.c | 2 +- psp/psp.c | 5 +++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/psp/Makefile b/psp/Makefile index d2e0ac2..c287054 100644 --- a/psp/Makefile +++ b/psp/Makefile @@ -174,6 +174,13 @@ rel: EBOOT.PBP readme.txt mkdir -p PicoDrive/skin/ cp $^ PicoDrive/ cp skin/* PicoDrive/skin/ - zip -9 -r ../../PicoDrive_$(VER).zip PicoDrive + zip -9 -r ../../PicoDrive_psp_$(VER).zip PicoDrive rm -rf PicoDrive +rel_kxploit: readme.txt + mkdir -p PicoDrive/skin/ + cp $^ PicoDrive/ + cp skin/* PicoDrive/skin/ + zip -9 -r ../../PicoDrive_psp_$(VER)_kxploit.zip PicoDrive + zip -9 -r ../../PicoDrive_psp_$(VER)_kxploit.zip PicoDrive% + diff --git a/psp/emu.c b/psp/emu.c index 665e41c..9c69d88 100644 --- a/psp/emu.c +++ b/psp/emu.c @@ -33,7 +33,7 @@ int sceAudioOutput2GetRestSample(); char romFileName[PATH_MAX]; unsigned char *PicoDraw2FB = (unsigned char *)VRAM_CACHED_STUFF + 8; // +8 to be able to skip border with 1 quadword.. -int engineState; +int engineState = PGS_Menu; static int combo_keys = 0, combo_acts = 0; // keys and actions which need button combos static unsigned int noticeMsgTime = 0; 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; } -- 2.39.5