forked from mirror/openmw-tes3mp
Strip quotes from the data-local setting if present (because for whatever reason it's a string, not a boost::filesystem::path)
This commit is contained in:
parent
a3a7b5b357
commit
1f77f9654b
1 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||
if (!local.empty())
|
||||
{
|
||||
if (local.front() == '\"')
|
||||
local = local.substr(1, local.length() - 2);
|
||||
|
||||
dataDirs.push_back(Files::PathContainer::value_type(local));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue