runs code in 1M wram, cell arrange, decode (untested)
authornotaz <notasas@gmail.com>
Wed, 21 Feb 2007 22:23:37 +0000 (22:23 +0000)
committernotaz <notasas@gmail.com>
Wed, 21 Feb 2007 22:23:37 +0000 (22:23 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@54 be3aeb3a-fb24-0410-a615-afba39da0efa

gp2x/emu.c
gp2x/version.h

index 56c83ff..24496fd 100644 (file)
@@ -764,6 +764,12 @@ static int check_save_file(void)
        return 0;\r
 }\r
 \r
+static void emu_state_cb(const char *str)\r
+{\r
+       clearArea(0);\r
+       blit("", str);\r
+}\r
+\r
 static void RunEvents(unsigned int which)\r
 {\r
        if(which & 0x1800) { // save or load (but not both)\r
@@ -778,7 +784,10 @@ static void RunEvents(unsigned int which)
                }\r
                if (do_it) {\r
                        osd_text(4, 232, (which & 0x1000) ? "LOADING GAME" : "SAVING GAME");\r
+                       PicoStateProgressCB = emu_state_cb;\r
+                       gp2x_memcpy_all_buffers(gp2x_screen, 0, 320*240*2);\r
                        emu_SaveLoadGame((which & 0x1000) >> 12, 0);\r
+                       PicoStateProgressCB = NULL;\r
                }\r
 \r
                reset_timing = 1;\r
@@ -1263,20 +1272,11 @@ size_t gzWrite2(void *p, size_t _size, size_t _n, void *file)
 }\r
 \r
 \r
-static void emu_state_cb(const char *str)\r
-{\r
-       clearArea(0);\r
-       blit("", str);\r
-}\r
-\r
 int emu_SaveLoadGame(int load, int sram)\r
 {\r
        int ret = 0;\r
        char saveFname[512];\r
 \r
-       PicoStateProgressCB = emu_state_cb;\r
-       gp2x_memcpy_all_buffers(gp2x_screen, 0, 320*240*2);\r
-\r
        // make save filename\r
        romfname_ext(saveFname, "");\r
        if(sram) strcat(saveFname, (PicoMCD&1) ? ".brm" : ".srm");\r
index a4d411f..0645b77 100644 (file)
@@ -1,2 +1,2 @@
-#define VERSION "1.14"\r
+#define VERSION "1.15"\r
 \r