minor adjustments
authornotaz <notasas@gmail.com>
Sun, 25 Nov 2007 16:45:26 +0000 (16:45 +0000)
committernotaz <notasas@gmail.com>
Sun, 25 Nov 2007 16:45:26 +0000 (16:45 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@305 be3aeb3a-fb24-0410-a615-afba39da0efa

Pico/Cart.c
platform/psp/Makefile
platform/psp/emu.c
platform/psp/psp.c

index cf71f24..6f97a42 100644 (file)
@@ -250,7 +250,7 @@ size_t pm_read(void *ptr, size_t bytes, pm_file *stream)
         if (block != cso->block_in_buff)\r
         {\r
           if (read_pos != cso->fpos_in)\r
-            { fseek(stream->file, read_pos, SEEK_SET); printf("seek %i\n", read_pos); }\r
+            fseek(stream->file, read_pos, SEEK_SET);\r
           rret = fread(cso->in_buff, 1, read_len, stream->file);\r
           cso->fpos_in = read_pos + rret;\r
           if (rret != read_len) {\r
index d2e0ac2..c287054 100644 (file)
@@ -174,6 +174,13 @@ rel: EBOOT.PBP readme.txt
        mkdir -p PicoDrive/skin/\r
        cp $^ PicoDrive/\r
        cp skin/* PicoDrive/skin/\r
-       zip -9 -r ../../PicoDrive_$(VER).zip PicoDrive\r
+       zip -9 -r ../../PicoDrive_psp_$(VER).zip PicoDrive\r
        rm -rf PicoDrive\r
 \r
+rel_kxploit: readme.txt\r
+       mkdir -p PicoDrive/skin/\r
+       cp $^ PicoDrive/\r
+       cp skin/* PicoDrive/skin/\r
+       zip -9 -r ../../PicoDrive_psp_$(VER)_kxploit.zip PicoDrive\r
+       zip -9 -r ../../PicoDrive_psp_$(VER)_kxploit.zip PicoDrive%\r
+\r
index 665e41c..9c69d88 100644 (file)
@@ -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;
index cdf26ae..6b65c2a 100644 (file)
@@ -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;
 }