Core: Fix getting config directory on Windows (fixes #1974)
Vicki Pfau vi@endrift.com
Wed, 09 Dec 2020 18:18:01 -0800
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/core/config.c
→
src/core/config.c
@@ -220,6 +220,7 @@ SHGetKnownFolderPath(&FOLDERID_RoamingAppData, 0, NULL, &home);
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);