X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flibchdr%2Finclude%2Flibchdr%2Fcoretypes.h;h=fc3f1d1f0f00f5f82fd6bae5c3218b620c9c67ca;hb=d526ed8c645d7e2147b7d454f29d123b4cfa311d;hp=30f892f6e24492e82f39a2b4fdc1eef9aaba2cc8;hpb=2ff0b5124f2e17a290121e1eeecf45db1d9e2c85;p=pcsx_rearmed.git diff --git a/deps/libchdr/include/libchdr/coretypes.h b/deps/libchdr/include/libchdr/coretypes.h index 30f892f6..fc3f1d1f 100644 --- a/deps/libchdr/include/libchdr/coretypes.h +++ b/deps/libchdr/include/libchdr/coretypes.h @@ -21,7 +21,12 @@ typedef int16_t INT16; typedef int8_t INT8; #define core_file FILE +#ifdef HAVE_LIBRETRO +#include +#define core_fopen(file) fopen_utf8(file, "rb") +#else #define core_fopen(file) fopen(file, "rb") +#endif #if defined(__WIN32__) || defined(_WIN32) || defined(WIN32) || defined(__WIN64__) #define core_fseek _fseeki64 #define core_ftell _ftelli64