mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +00:00
same for launcher
This commit is contained in:
parent
4c2fffdd61
commit
7aaa7f185f
1 changed files with 9 additions and 11 deletions
|
@ -180,7 +180,7 @@ void DataFilesPage::setupDataFiles()
|
||||||
|
|
||||||
desc.add_options()
|
desc.add_options()
|
||||||
("data", boost::program_options::value<Files::PathContainer>()->default_value(Files::PathContainer(), "data")->multitoken())
|
("data", boost::program_options::value<Files::PathContainer>()->default_value(Files::PathContainer(), "data")->multitoken())
|
||||||
("data-local", boost::program_options::value<std::string>()->default_value(""))
|
// ("data-local", boost::program_options::value<std::string>()->default_value(""))
|
||||||
("fs-strict", boost::program_options::value<bool>()->implicit_value(true)->default_value(false))
|
("fs-strict", boost::program_options::value<bool>()->implicit_value(true)->default_value(false))
|
||||||
("encoding", boost::program_options::value<std::string>()->default_value("win1252"));
|
("encoding", boost::program_options::value<std::string>()->default_value("win1252"));
|
||||||
|
|
||||||
|
@ -189,16 +189,14 @@ void DataFilesPage::setupDataFiles()
|
||||||
// Put the paths in a boost::filesystem vector to use with Files::Collections
|
// Put the paths in a boost::filesystem vector to use with Files::Collections
|
||||||
Files::PathContainer dataDirs(variables["data"].as<Files::PathContainer>());
|
Files::PathContainer dataDirs(variables["data"].as<Files::PathContainer>());
|
||||||
|
|
||||||
std::string local(variables["data-local"].as<std::string>());
|
// std::string local(variables["data-local"].as<std::string>());
|
||||||
if (!local.empty())
|
// if (!local.empty())
|
||||||
{
|
// {
|
||||||
dataDirs.push_back(Files::PathContainer::value_type(local));
|
// dataDirs.push_back(Files::PathContainer::value_type(local));
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (dataDirs.empty())
|
if (dataDirs.size()>1)
|
||||||
{
|
dataDirs.resize (1);
|
||||||
dataDirs.push_back(mCfgMgr.getLocalPath());
|
|
||||||
}
|
|
||||||
|
|
||||||
mCfgMgr.processPaths(dataDirs);
|
mCfgMgr.processPaths(dataDirs);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue