savestates works
[picodrive.git] / Pico / Area.c
index 5ae50e8..23d9af1 100644 (file)
@@ -22,9 +22,10 @@ struct PicoArea { void *data; int len; char *name; };
 // taking an address of fread or fwrite causes "application could't be started" error\r
 // on startup randomly depending on binary layout of executable file.\r
 \r
-arearw  *areaRead  = (arearw *) 0; // fread;  // read and write function pointers for\r
-arearw  *areaWrite = (arearw *) 0; // fwrite; // gzip save state ability\r
-areaeof *areaEof = (areaeof *) 0;\r
+arearw   *areaRead  = (arearw *) 0; // fread;  // read and write function pointers for\r
+arearw   *areaWrite = (arearw *) 0; // fwrite; // gzip save state ability\r
+areaeof  *areaEof   = (areaeof *) 0;\r
+areaseek *areaSeek  = (areaseek *) 0;\r
 \r
 \r
 // Scan one variable and callback\r
@@ -161,7 +162,7 @@ int PmovState(int PmovAction, void *PmovFile)
   int minimum=0;\r
   unsigned char head[32];\r
 \r
-  // testing\r
+  if (PicoMCD & 1)\r
   {\r
     if (PmovAction&1) return PicoCdSaveState(PmovFile);\r
     if (PmovAction&2) return PicoCdLoadState(PmovFile);\r