- Mac version now links. Updaterevision refuses to give me a version number.
Zipdir is not doing byte swapping like it should. zdoom.ini is stored in ~/Preferences, but all other file accesses are probably going to be like Windows and look in the same directory as the executable. SVN r1786 (trunk)
This commit is contained in:
parent
1d582a7550
commit
48d78730f3
8 changed files with 443 additions and 29 deletions
|
|
@ -35,6 +35,10 @@
|
|||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <CoreServices/CoreServices.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
|
@ -541,6 +545,19 @@ FString FGameConfigFile::GetConfigPath (bool tryProg)
|
|||
path += "zdoom.ini";
|
||||
}
|
||||
return path;
|
||||
#elif defined(__APPLE__)
|
||||
char cpath[PATH_MAX];
|
||||
FSRef folder;
|
||||
|
||||
if (noErr == FSFindFolder(kUserDomain, kPreferencesFolderType, kCreateFolder, &folder) &&
|
||||
noErr == FSRefMakePath(&folder, (UInt8*)cpath, PATH_MAX))
|
||||
{
|
||||
path = cpath;
|
||||
path += "zdoom.ini";
|
||||
return path;
|
||||
}
|
||||
// Ungh.
|
||||
return "zdoom.ini";
|
||||
#else
|
||||
return GetUserFile ("zdoom.ini");
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue