Core: Fix getting config directory on Windows (fixes #1974)

This commit is contained in:
Vicki Pfau 2020-12-09 18:18:01 -08:00
parent 2bc19f3a7d
commit a5f3718f81
1 changed files with 1 additions and 0 deletions

View File

@ -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);