mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 09:39:43 +01:00
Invert the ifdef mess for getOSDirectory
This commit is contained in:
parent
a977f49725
commit
4ef74e837a
1 changed files with 3 additions and 4 deletions
|
@ -155,13 +155,12 @@ std::vector<std::string> 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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue