Convert fceu/file.c to memstream-based

This commit is contained in:
twinaphex
2014-12-09 01:06:57 +01:00
parent 4addc7d461
commit 82741c30e5
2 changed files with 110 additions and 25 deletions

View File

@@ -1,8 +1,20 @@
#ifndef _FCEU_FILE_H
#define _FCEU_FILE_H
#ifdef __LIBRETRO__
typedef struct {
uint8 *data;
uint32 size;
uint32 location;
} MEMWRAP;
#endif
typedef struct {
#ifdef __LIBRETRO__
MEMWRAP *fp;
#else
void *fp; // FILE* or ptr to ZIPWRAP
#endif
uint32 type; // 0=normal file, 1=gzip, 2=zip
} FCEUFILE;