X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico.h;h=ba7349e3e716f8a434fc14bc65c116ac22182253;hb=0d83abe234136b0cbf3f2ae020760d9f57d84af6;hp=4940796da712b4f3f7d9d4759dbd39b43f871a37;hpb=d687ef50419fe4f286df866333a5425204e5b98e;p=picodrive.git diff --git a/pico/pico.h b/pico/pico.h index 4940796..ba7349e 100644 --- a/pico/pico.h +++ b/pico/pico.h @@ -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