mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
- 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:
parent
c1aac878b0
commit
f591c5df5e
2 changed files with 3 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue