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:
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…
x
Reference in New Issue
Block a user