X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico.h;h=ba7349e3e716f8a434fc14bc65c116ac22182253;hb=0d83abe234136b0cbf3f2ae020760d9f57d84af6;hp=fb067b8d1b9ed37e488a2d90bf60a2b10054bc2d;hpb=1cfc5cc4ce06642b9bc45ca3b9d32793718e9455;p=picodrive.git diff --git a/pico/pico.h b/pico/pico.h index fb067b8..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 @@ -121,7 +112,7 @@ void PicoCDBufferFree(void); void PicoCDBufferFlush(void); // cd/cd_sys.c -int Insert_CD(char *cdimg_name, int type); +int Insert_CD(const char *cdimg_name, int type); void Stop_CD(void); // releases all resources taken when CD game was started. // Cart.c