diff --git a/desmume/src/frontend/windows/hotkey.cpp b/desmume/src/frontend/windows/hotkey.cpp index 2043f1b29..5ad32691a 100644 --- a/desmume/src/frontend/windows/hotkey.cpp +++ b/desmume/src/frontend/windows/hotkey.cpp @@ -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) diff --git a/desmume/src/path.cpp b/desmume/src/path.cpp index 6b2b4d852..0757687ee 100644 --- a/desmume/src/path.cpp +++ b/desmume/src/path.cpp @@ -170,7 +170,7 @@ void createDirectoryRecursively(std::wstring path) void FCEUD_MakePathDirs(const char *fname) { - createDirectoryRecursively(mbstowcs_locale(fname)); + createDirectoryRecursively(mbstowcs(fname)); } #endif //------------------------------