mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
Add a warning if replace==config is used.
This commit is contained in:
parent
5b23ba3faf
commit
6084dbfc3a
@ -123,6 +123,18 @@ void ConfigurationManager::readConfiguration(boost::program_options::variables_m
|
||||
if (!boost::filesystem::is_directory(mScreenshotPath))
|
||||
mScreenshotPath = mUserDataPath;
|
||||
|
||||
if (!quiet && !variables["replace"].empty())
|
||||
{
|
||||
for (const std::string& var : variables["replace"].as<std::vector<std::string>>())
|
||||
{
|
||||
if (var == "config")
|
||||
{
|
||||
Log(Debug::Warning) << "replace=config is not allowed and was ignored";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!quiet)
|
||||
{
|
||||
Log(Debug::Info) << "Logs dir: " << getUserConfigPath().string();
|
||||
|
Loading…
Reference in New Issue
Block a user