Make core need_fullpath = false and pass memory buffer and size

of ROM from frontend to core
This commit is contained in:
twinaphex
2014-12-09 01:45:15 +01:00
parent 0e8d488cc7
commit ea0d1f8046
6 changed files with 33 additions and 7 deletions

View File

@@ -18,7 +18,11 @@ typedef struct {
uint32 type; // 0=normal file, 1=gzip, 2=zip
} FCEUFILE;
#ifdef __LIBRETRO__
FCEUFILE *FCEU_fopen(const char *path, const char *ipsfn, char *mode, char *ext, uint8 *buffer, size_t bufsize);
#else
FCEUFILE *FCEU_fopen(const char *path, const char *ipsfn, char *mode, char *ext);
#endif
int FCEU_fclose(FCEUFILE*);
uint64 FCEU_fread(void *ptr, size_t size, size_t nmemb, FCEUFILE*);
uint64 FCEU_fwrite(void *ptr, size_t size, size_t nmemb, FCEUFILE*);