Don't go through UTF8fopen wrapper function

This commit is contained in:
twinaphex
2014-12-08 22:23:26 +01:00
parent 8b8e7fd699
commit 4addc7d461
3 changed files with 4 additions and 4 deletions

View File

@@ -614,7 +614,7 @@ int FDSLoad(const char *name, FCEUFILE *fp) {
char *fn = FCEU_MakeFName(FCEUMKF_FDSROM, 0, 0);
if (!(zp = FCEUD_UTF8fopen(fn, "rb"))) {
if (!(zp = fopen(fn, "rb"))) {
FCEU_PrintError("FDS BIOS ROM image missing!");
free(fn);
return 0;
@@ -737,7 +737,7 @@ void FDSClose(void) {
if (!DiskWritten) return;
if (!(fp = FCEUD_UTF8fopen(fn, "wb"))) {
if (!(fp = fopen(fn, "wb"))) {
free(fn);
return;
}

View File

@@ -49,7 +49,7 @@ FCEUFILE * FCEU_fopen(const char *path, const char *ipsfn, char *mode, char *ext
void *t;
FCEUFILE *fceufp = (FCEUFILE*)malloc(sizeof(FCEUFILE));
if ((t = FCEUD_UTF8fopen(path, mode)))
if ((t = fopen(path, mode)))
{
fseek((FILE*)t, 0, SEEK_SET);
fceufp->type = 0;

View File

@@ -560,7 +560,7 @@ void FCEUSS_CheckStates(void)
for (ssel = 0; ssel < 10; ssel++)
{
st = FCEUD_UTF8fopen(fn = FCEU_MakeFName(FCEUMKF_STATE, ssel, 0), "rb");
st = fopen(fn = FCEU_MakeFName(FCEUMKF_STATE, ssel, 0), "rb");
free(fn);
if (st)
{