mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Invert the ifdef mess for getOSDirectory
This commit is contained in:
@@ -155,13 +155,12 @@ std::vector<std::string> FILESYSTEM_getLevelDirFileNames()
|
|||||||
|
|
||||||
void PLATFORM_getOSDirectory(char* output)
|
void PLATFORM_getOSDirectory(char* output)
|
||||||
{
|
{
|
||||||
#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__)
|
#ifdef _WIN32
|
||||||
strcpy(output, PHYSFS_getPrefDir("distractionware", "VVVVVV"));
|
/* This block is here for compatibility, do not touch it! */
|
||||||
#elif defined(_WIN32)
|
|
||||||
SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, output);
|
SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, output);
|
||||||
strcat(output, "\\VVVVVV\\");
|
strcat(output, "\\VVVVVV\\");
|
||||||
#else
|
#else
|
||||||
#error See PLATFORM_getOSDirectory
|
strcpy(output, PHYSFS_getPrefDir("distractionware", "VVVVVV"));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user