From 5a3cfbc1b93fae989ce74d5fa490c64a8d7a3bf8 Mon Sep 17 00:00:00 2001 From: EkeEke Date: Tue, 19 Sep 2017 15:00:03 +0200 Subject: [PATCH] [Core/CD] implemented proper CHD file virtualization --- core/cd_hw/libchdr/src/coretypes.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/cd_hw/libchdr/src/coretypes.h b/core/cd_hw/libchdr/src/coretypes.h index 5a769f6..2132bfc 100644 --- a/core/cd_hw/libchdr/src/coretypes.h +++ b/core/cd_hw/libchdr/src/coretypes.h @@ -20,11 +20,11 @@ typedef int16_t INT16; typedef int8_t INT8; #endif -#define core_file FILE -#define core_fopen(file) fopen(file, "rb") -#define core_fseek fseek -#define core_fread(fc, buff, len) fread(buff, 1, len, fc) -#define core_fclose fclose -#define core_ftell ftell +#define core_file cdStream +#define core_fopen cdStreamOpen +#define core_fseek cdStreamSeek +#define core_fread(fc, buff, len) cdStreamRead(buff, 1, len, fc) +#define core_fclose cdStreamClose +#define core_ftell cdStreamTell #endif