Convert fceu/file.c to memstream-based
This commit is contained in:
12
src/file.h
12
src/file.h
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user