Strip quotes from the data-local setting if present (because for whatever reason it's a string, not a boost::filesystem::path)

pull/317/head
AnyOldName3 7 years ago
parent a3a7b5b357
commit 1f77f9654b

@ -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…
Cancel
Save