X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FArea.c;h=e4f680b1d85ec2c5bd0201de8ecb5bab200d7806;hb=860c6322c346c8e2ec2a4626e79f26d8b0d23777;hp=5ae50e86a6350f30ae736fbbe09dc0e53f8bb799;hpb=51a902ae2512cffdb3ac7751988c1bde4a641be4;p=picodrive.git diff --git a/Pico/Area.c b/Pico/Area.c index 5ae50e8..e4f680b 100644 --- a/Pico/Area.c +++ b/Pico/Area.c @@ -22,9 +22,11 @@ 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; +areaclose *areaClose = (areaclose *) 0; // Scan one variable and callback @@ -161,7 +163,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);