From df37799e49cf69048d375bb674f21e70ef0d2fb7 Mon Sep 17 00:00:00 2001 From: OV2 Date: Fri, 6 May 2011 01:19:30 +0200 Subject: [PATCH] Win32: fix unicode snapshot loading --- win32/win32.cpp | 2 +- win32/wsnes9x.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/win32/win32.cpp b/win32/win32.cpp index 2db43056..bcdc5c5e 100644 --- a/win32/win32.cpp +++ b/win32/win32.cpp @@ -385,7 +385,7 @@ const char *S9xGetFilenameInc (const char *e, enum s9x_getdirtype dirtype) do { _snprintf(filename, sizeof(filename), "%s\\%s%03d%s", d, fname, i, e); i++; - } while(_access (filename, 0) == 0 && i!=0); + } while(_taccess (_tFromChar(filename), 0) == 0 && i!=0); return (filename); } diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index ed34ef47..be1acce7 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -3511,7 +3511,7 @@ void FreezeUnfreeze (int slot, bool8 freeze) { for(int zmv = 0; zmv <= 1; zmv++) { - if((!oldDir && !zmv) || (!freeze && _access (filename, 0) != 0 && slot < 10)) + if((!oldDir && !zmv) || (!freeze && _taccess (_tFromChar(filename), 0) != 0 && slot < 10)) { if(!zmv) sprintf (ext, ".%03d", slot);