all repos — mgba @ a5f3718f81fb62fa956e2994d5c98dcedc2c21ae

mGBA Game Boy Advance Emulator

Core: Fix getting config directory on Windows (fixes #1974)
Vicki Pfau vi@endrift.com
Wed, 09 Dec 2020 18:18:01 -0800
commit

a5f3718f81fb62fa956e2994d5c98dcedc2c21ae

parent

2bc19f3a7da4cc25f929f591267035bf9c3938f9

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/core/config.csrc/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);