From: negativeExponent Date: Fri, 23 Apr 2021 00:54:23 +0000 (+0800) Subject: libchdr: Use also fopen_utf8 here X-Git-Tag: r24l~583^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9821f0781616b67cfaf19640db44f8aa20e4ab7;p=pcsx_rearmed.git libchdr: Use also fopen_utf8 here RE: https://github.com/libretro/libretro-fceumm/issues/448 --- 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