File IO fix

This commit is contained in:
Alberto Fustinoni 2017-07-26 11:40:58 +09:00
parent 903eb1946b
commit 1c079d5184

View File

@ -51,6 +51,7 @@ typedef unsigned char bool;
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <streams/file_stream_transforms.h>
#define MAX_INPUTS 8
#define MAX_KEYS 8
@ -132,4 +133,14 @@ extern void osd_input_update(void);
extern int load_archive(char *filename, unsigned char *buffer, int maxsize, char *extension);
extern void ROMCheatUpdate(void);
#ifndef cdStream
#define cdStream RFILE
#define cdStreamOpen(fname) rfopen(fname, "rb")
#define cdStreamClose rfclose
#define cdStreamRead rfread
#define cdStreamSeek rfseek
#define cdStreamTell rftell
#define cdStreamGets rfgets
#endif
#endif /* _OSD_H */