X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico.h;h=ba7349e3e716f8a434fc14bc65c116ac22182253;hb=0d83abe234136b0cbf3f2ae020760d9f57d84af6;hp=c3ada590b0ac0257573e7910fefbcac9748de262;hpb=35e3031aaab69be3703de3b6ce0cfa64aae5ece8;p=picodrive.git diff --git a/pico/pico.h b/pico/pico.h index c3ada59..ba7349e 100644 --- a/pico/pico.h +++ b/pico/pico.h @@ -78,7 +78,7 @@ void PicoGetInternal(pint_t which, pint_ret_t *ret); // cd/Pico.c extern void (*PicoMCDopenTray)(void); -extern int (*PicoMCDcloseTray)(void); +extern void (*PicoMCDcloseTray)(void); extern int PicoCDBuffers; // Pico/Pico.c @@ -98,21 +98,12 @@ typedef struct } picohw_state; extern picohw_state PicoPicohw; -// Area.c -typedef size_t (arearw)(void *p, size_t _size, size_t _n, void *file); -typedef size_t (areaeof)(void *file); -typedef int (areaseek)(void *file, long offset, int whence); -typedef int (areaclose)(void *file); -// Save or load the state from PmovFile: -int PmovState(int PmovAction, void *PmovFile); // &1=for reading &2=for writing &4=volatile &8=non-volatile -extern arearw *areaRead; // external read and write function pointers for -extern arearw *areaWrite; // gzip save state ability -extern areaeof *areaEof; -extern areaseek *areaSeek; -extern areaclose *areaClose; +// area.c +int PicoState(const char *fname, int is_save); +int PicoStateLoadVDP(const char *fname); extern void (*PicoStateProgressCB)(const char *str); -// cd/Area.c +// cd/area.c int PicoCdLoadStateGfx(void *file); // cd/buffering.c