mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +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
|
// 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";
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue