mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-14 06:45:09 +01:00
File IO fix
This commit is contained in:
parent
903eb1946b
commit
1c079d5184
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user