diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index 154c41de..f8f415ac 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -155,13 +155,12 @@ std::vector FILESYSTEM_getLevelDirFileNames() void PLATFORM_getOSDirectory(char* output) { -#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) - strcpy(output, PHYSFS_getPrefDir("distractionware", "VVVVVV")); -#elif defined(_WIN32) +#ifdef _WIN32 + /* This block is here for compatibility, do not touch it! */ SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, output); strcat(output, "\\VVVVVV\\"); #else -#error See PLATFORM_getOSDirectory + strcpy(output, PHYSFS_getPrefDir("distractionware", "VVVVVV")); #endif }