mirror of https://github.com/snes9xgit/snes9x.git
Win32: fix unicode snapshot loading
This commit is contained in:
parent
107b2ef921
commit
df37799e49
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue