winport - fix mojibake bug in configured path usage (mainly screenshots, fixes #910)

This commit is contained in:
zeromus 2025-05-28 00:35:27 -04:00
parent cdb9acdc4d
commit 96805d7c27
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ void HK_QuickScreenShot(int param, bool justPressed)
break;
}
DoScreenshot(mbstowcs_locale(fname).c_str());
DoScreenshot(mbstowcs(fname).c_str());
}
void HK_PrintScreen(int param, bool justPressed)

View File

@ -170,7 +170,7 @@ void createDirectoryRecursively(std::wstring path)
void FCEUD_MakePathDirs(const char *fname)
{
createDirectoryRecursively(mbstowcs_locale(fname));
createDirectoryRecursively(mbstowcs(fname));
}
#endif
//------------------------------