libretro: add savestate support

This commit is contained in:
notaz 2013-07-31 02:18:34 +03:00
parent 989ba52a01
commit 86b38dc46d
3 changed files with 145 additions and 15 deletions

9
pico/state.h Normal file
View file

@ -0,0 +1,9 @@
#include <stdlib.h>
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);
int PicoStateFP(void *afile, int is_save,
arearw *read, arearw *write, areaeof *eof, areaseek *seek);