From dbd9a114b6c803ec6ed8fdf7a5a361b50ce3ee8c Mon Sep 17 00:00:00 2001 From: Dav999-v <44736680+Dav999-v@users.noreply.github.com> Date: Mon, 12 Apr 2021 17:23:50 +0000 Subject: [PATCH] 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 --- desktop_version/src/FileSystemUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index 79233e27..1dce9bd3 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -590,7 +590,7 @@ static void PLATFORM_getOSDirectory(char* output) SHGetFolderPathW(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, utf16_path); WideCharToMultiByte(CP_UTF8, 0, utf16_path, -1, output, MAX_PATH, NULL, NULL); SDL_strlcat(output, "\\VVVVVV\\", MAX_PATH); - mkdir(output, 0); + mkdir(output, 0777); #else SDL_strlcpy(output, PHYSFS_getPrefDir("distractionware", "VVVVVV"), MAX_PATH); #endif