From f591c5df5e3a1a18c8d737777d1f7f5f62835c20 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 18 Sep 2013 09:40:40 +0200 Subject: [PATCH] - 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. --- src/m_specialpaths.cpp | 2 +- src/version.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/m_specialpaths.cpp b/src/m_specialpaths.cpp index 469a2fa6b..d9b776d58 100644 --- a/src/m_specialpaths.cpp +++ b/src/m_specialpaths.cpp @@ -195,7 +195,7 @@ FString M_GetConfigPath(bool for_reading) // Construct a user-specific config name if (UseKnownFolders() && GetKnownFolder(CSIDL_APPDATA, FOLDERID_RoamingAppData, true, path)) { - path += "/zdoom"; + path << '/' << GAME_DIR; CreatePath(path); path += "/zdoom.ini"; } diff --git a/src/version.h b/src/version.h index 5fee0bd83..b0717fbf8 100644 --- a/src/version.h +++ b/src/version.h @@ -95,6 +95,8 @@ const char *GetVersionString(); #define GAME_DIR ".config/zdoom" #elif defined(__APPLE__) #define GAME_DIR GAMENAME +#else +#define GAME_DIR "zdoom" #endif