Selectively replace fopen() with fopen_utf8()
authornegativeExponent <negativeExponent@users.noreply.github.com>
Tue, 20 Apr 2021 12:00:18 +0000 (20:00 +0800)
committernegativeExponent <negativeExponent@users.noreply.github.com>
Tue, 20 Apr 2021 12:00:18 +0000 (20:00 +0800)
commit270c6dd14f876b8a67929aa22abefc47f4588324
tree47698b486372a57c99b18eba7fbabb4bf5655d6c
parent3993490baa28964c5e3e8f879b58147184d9b0f7
Selectively replace fopen() with fopen_utf8()

This selectively replace fopen calls with fopen_utf8, to handle paths
that uses special characters in Windows.

The replacement covers these:
- opening of bios file
- opening, writting and creating memcard2
- opening and handling of disk images

Related: https://github.com/libretro/libretro-fceumm/issues/448
13 files changed:
Makefile
frontend/libretro.c
libpcsxcore/cdriso.c
libpcsxcore/psxmem.c
libpcsxcore/sio.c
libretro-common/compat/fopen_utf8.c [new file with mode: 0644]
libretro-common/include/boolean.h [new file with mode: 0644]
libretro-common/include/compat/fopen_utf8.h [new file with mode: 0644]
libretro-common/include/encodings/utf.h [new file with mode: 0644]
libretro-common/include/libretro.h
libretro-common/include/retro_common_api.h [new file with mode: 0644]
libretro-common/include/retro_inline.h
plugins/cdrcimg/cdrcimg.c