- fixed: saving the config to the user's known folders should use the GAME_DIR #define, not 'zdoom' so that child ports can have their own.

This commit is contained in:
Christoph Oelckers 2013-09-18 09:40:40 +02:00
parent c1aac878b0
commit f591c5df5e
2 changed files with 3 additions and 1 deletions

View File

@ -195,7 +195,7 @@ FString M_GetConfigPath(bool for_reading)
// Construct a user-specific config name // Construct a user-specific config name
if (UseKnownFolders() && GetKnownFolder(CSIDL_APPDATA, FOLDERID_RoamingAppData, true, path)) if (UseKnownFolders() && GetKnownFolder(CSIDL_APPDATA, FOLDERID_RoamingAppData, true, path))
{ {
path += "/zdoom"; path << '/' << GAME_DIR;
CreatePath(path); CreatePath(path);
path += "/zdoom.ini"; path += "/zdoom.ini";
} }

View File

@ -95,6 +95,8 @@ const char *GetVersionString();
#define GAME_DIR ".config/zdoom" #define GAME_DIR ".config/zdoom"
#elif defined(__APPLE__) #elif defined(__APPLE__)
#define GAME_DIR GAMENAME #define GAME_DIR GAMENAME
#else
#define GAME_DIR "zdoom"
#endif #endif