forked from mirror/openmw-tes3mp
Merge pull request #1507 from AnyOldName3/data-local-fix
Fix the loading of 'data-local' lines which I broke
This commit is contained in:
commit
21a705fb75
2 changed files with 8 additions and 1 deletions
|
@ -127,7 +127,11 @@ std::pair<Files::PathContainer, std::vector<std::string> > CS::Editor::readConfi
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string local = variables["data-local"].as<Files::EscapeHashString>().toStdString();
|
std::string local = variables["data-local"].as<Files::EscapeHashString>().toStdString();
|
||||||
if (!local.empty()) {
|
if (!local.empty())
|
||||||
|
{
|
||||||
|
if (local.front() == '\"')
|
||||||
|
local = local.substr(1, local.length() - 2);
|
||||||
|
|
||||||
dataLocal.push_back(Files::PathContainer::value_type(local));
|
dataLocal.push_back(Files::PathContainer::value_type(local));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -194,6 +194,9 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
||||||
std::string local(variables["data-local"].as<Files::EscapeHashString>().toStdString());
|
std::string local(variables["data-local"].as<Files::EscapeHashString>().toStdString());
|
||||||
if (!local.empty())
|
if (!local.empty())
|
||||||
{
|
{
|
||||||
|
if (local.front() == '\"')
|
||||||
|
local = local.substr(1, local.length() - 2);
|
||||||
|
|
||||||
dataDirs.push_back(Files::PathContainer::value_type(local));
|
dataDirs.push_back(Files::PathContainer::value_type(local));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue