Use fopen_utf8 instead of fopen

This commit is contained in:
negativeExponent
2021-04-20 16:18:54 +08:00
parent 107d886bd8
commit d6c854abd8
7 changed files with 118 additions and 13 deletions

View File

@@ -34,6 +34,8 @@
#include "driver.h"
#include "general.h"
#include "compat/fopen_utf8.h"
#ifndef __GNUC__
#define strcasecmp strcmp
#endif
@@ -85,7 +87,7 @@ FCEUFILE * FCEU_fopen(const char *path, const char *ipsfn,
fceufp->fp = MakeMemWrapBuffer(path, 0, buffer, bufsize);
else
{
void *t = fopen(path, mode);
void *t = fopen_utf8(path, mode);
if (!t)
{