mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 10:29:45 +01:00
Change mode in Windows-only mkdir to 0777
It's not really used because CreateDirectory doesn't support setting chmod values, but it does clarify intent of the argument. Co-authored-by: Ethan Lee <flibitijibibo@gmail.com>
This commit is contained in:
parent
274ae98915
commit
dbd9a114b6
1 changed files with 1 additions and 1 deletions
|
@ -590,7 +590,7 @@ static void PLATFORM_getOSDirectory(char* output)
|
||||||
SHGetFolderPathW(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, utf16_path);
|
SHGetFolderPathW(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, utf16_path);
|
||||||
WideCharToMultiByte(CP_UTF8, 0, utf16_path, -1, output, MAX_PATH, NULL, NULL);
|
WideCharToMultiByte(CP_UTF8, 0, utf16_path, -1, output, MAX_PATH, NULL, NULL);
|
||||||
SDL_strlcat(output, "\\VVVVVV\\", MAX_PATH);
|
SDL_strlcat(output, "\\VVVVVV\\", MAX_PATH);
|
||||||
mkdir(output, 0);
|
mkdir(output, 0777);
|
||||||
#else
|
#else
|
||||||
SDL_strlcpy(output, PHYSFS_getPrefDir("distractionware", "VVVVVV"), MAX_PATH);
|
SDL_strlcpy(output, PHYSFS_getPrefDir("distractionware", "VVVVVV"), MAX_PATH);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue