X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FArea.c;h=23d9af135eae239d5a62c3edf0c5b0a816b0f280;hb=e11c55481f1703298b3e7e213f73cec8a136f974;hp=5ae50e86a6350f30ae736fbbe09dc0e53f8bb799;hpb=51a902ae2512cffdb3ac7751988c1bde4a641be4;p=picodrive.git diff --git a/Pico/Area.c b/Pico/Area.c index 5ae50e8..23d9af1 100644 --- a/Pico/Area.c +++ b/Pico/Area.c @@ -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 // on startup randomly depending on binary layout of executable file. -arearw *areaRead = (arearw *) 0; // fread; // read and write function pointers for -arearw *areaWrite = (arearw *) 0; // fwrite; // gzip save state ability -areaeof *areaEof = (areaeof *) 0; +arearw *areaRead = (arearw *) 0; // fread; // read and write function pointers for +arearw *areaWrite = (arearw *) 0; // fwrite; // gzip save state ability +areaeof *areaEof = (areaeof *) 0; +areaseek *areaSeek = (areaseek *) 0; // Scan one variable and callback @@ -161,7 +162,7 @@ int PmovState(int PmovAction, void *PmovFile) int minimum=0; unsigned char head[32]; - // testing + if (PicoMCD & 1) { if (PmovAction&1) return PicoCdSaveState(PmovFile); if (PmovAction&2) return PicoCdLoadState(PmovFile);