From a9821f0781616b67cfaf19640db44f8aa20e4ab7 Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Fri, 23 Apr 2021 08:54:23 +0800 Subject: [PATCH] libchdr: Use also fopen_utf8 here RE: https://github.com/libretro/libretro-fceumm/issues/448 --- deps/libchdr/include/libchdr/coretypes.h | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5