From a5f3718f81fb62fa956e2994d5c98dcedc2c21ae Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 9 Dec 2020 18:18:01 -0800 Subject: [PATCH] Core: Fix getting config directory on Windows (fixes #1974) --- src/core/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/config.c b/src/core/config.c index a6651d4b0..b25ba9317 100644 --- a/src/core/config.c +++ b/src/core/config.c @@ -220,6 +220,7 @@ void mCoreConfigDirectory(char* out, size_t outLength) { StringCchPrintfW(wpath, MAX_PATH, L"%ws\\%ws", home, wprojectName); CoTaskMemFree(home); CreateDirectoryW(wpath, NULL); + WideCharToMultiByte(CP_UTF8, 0, wpath, -1, out, outLength, 0, 0); #elif defined(PSP2) snprintf(out, outLength, "ux0:data/%s", projectName); sceIoMkdir(out, 0777);