[Core/CD] implemented proper CHD file virtualization

This commit is contained in:
EkeEke 2017-09-19 15:00:03 +02:00
parent 31906b20cf
commit 5a3cfbc1b9

View File

@ -20,11 +20,11 @@ typedef int16_t INT16;
typedef int8_t INT8; typedef int8_t INT8;
#endif #endif
#define core_file FILE #define core_file cdStream
#define core_fopen(file) fopen(file, "rb") #define core_fopen cdStreamOpen
#define core_fseek fseek #define core_fseek cdStreamSeek
#define core_fread(fc, buff, len) fread(buff, 1, len, fc) #define core_fread(fc, buff, len) cdStreamRead(buff, 1, len, fc)
#define core_fclose fclose #define core_fclose cdStreamClose
#define core_ftell ftell #define core_ftell cdStreamTell
#endif #endif