1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Make ConfigurationManager::getUserConfigPath to return the actual config path where the settings, logs, and Lua storage are stored.

This commit is contained in:
Petr Mikheev 2022-01-16 02:10:13 +01:00
parent a453e5c198
commit 5ff2fc55ac
2 changed files with 5 additions and 2 deletions

View File

@ -314,7 +314,10 @@ const boost::filesystem::path& ConfigurationManager::getGlobalPath() const
const boost::filesystem::path& ConfigurationManager::getUserConfigPath() const
{
return mFixedPath.getUserConfigPath();
if (mActiveConfigPaths.empty())
return mFixedPath.getUserConfigPath();
else
return mActiveConfigPaths.back();
}
const boost::filesystem::path& ConfigurationManager::getUserDataPath() const

View File

@ -32,10 +32,10 @@ struct ConfigurationManager
/**< Fixed paths */
const boost::filesystem::path& getGlobalPath() const;
const boost::filesystem::path& getUserConfigPath() const;
const boost::filesystem::path& getLocalPath() const;
const boost::filesystem::path& getGlobalDataPath() const;
const boost::filesystem::path& getUserConfigPath() const;
const boost::filesystem::path& getUserDataPath() const;
const boost::filesystem::path& getLocalDataPath() const;
const boost::filesystem::path& getInstallPath() const;