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

C++20
Petr Mikheev 3 years ago
parent a453e5c198
commit 5ff2fc55ac

@ -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

@ -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;

Loading…
Cancel
Save