mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-20 14:16:46 +00:00
Add a warning if replace==config is used.
This commit is contained in:
parent
5b23ba3faf
commit
6084dbfc3a
1 changed files with 12 additions and 0 deletions
|
@ -123,6 +123,18 @@ void ConfigurationManager::readConfiguration(boost::program_options::variables_m
|
||||||
if (!boost::filesystem::is_directory(mScreenshotPath))
|
if (!boost::filesystem::is_directory(mScreenshotPath))
|
||||||
mScreenshotPath = mUserDataPath;
|
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)
|
if (!quiet)
|
||||||
{
|
{
|
||||||
Log(Debug::Info) << "Logs dir: " << getUserConfigPath().string();
|
Log(Debug::Info) << "Logs dir: " << getUserConfigPath().string();
|
||||||
|
|
Loading…
Reference in a new issue