mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-21 05:14:10 +00:00
Merge branch 'multidata'
This commit is contained in:
commit
ef6f033dd1
3 changed files with 8 additions and 15 deletions
|
@ -197,7 +197,7 @@ bool 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"));
|
||||||
|
|
||||||
|
@ -206,11 +206,10 @@ bool 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
|
||||||
mDataDirs = Files::PathContainer(variables["data"].as<Files::PathContainer>());
|
mDataDirs = Files::PathContainer(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()) {
|
||||||
// mDataLocal.push_back(Files::PathContainer::value_type(local));
|
mDataLocal.push_back(Files::PathContainer::value_type(local));
|
||||||
// dataDirs.push_back(Files::PathContainer::value_type(local));
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
if (mDataDirs.size()>1)
|
if (mDataDirs.size()>1)
|
||||||
mDataDirs.resize (1);
|
mDataDirs.resize (1);
|
||||||
|
|
|
@ -207,15 +207,7 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
||||||
std::string local(variables["data-local"].as<std::string>());
|
std::string local(variables["data-local"].as<std::string>());
|
||||||
if (!local.empty())
|
if (!local.empty())
|
||||||
{
|
{
|
||||||
std::cout << "Ignoring data-local (currently not supported)" << std::endl;
|
dataDirs.push_back(Files::PathContainer::value_type(local));
|
||||||
// dataDirs.push_back(Files::PathContainer::value_type(local));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (dataDirs.size()>1)
|
|
||||||
{
|
|
||||||
dataDirs.resize (1);
|
|
||||||
std::cout << "Ignoring all but the first data path (multiple data paths currently not supported)"
|
|
||||||
<< std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cfgMgr.processPaths(dataDirs);
|
cfgMgr.processPaths(dataDirs);
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
data="?global?"data"
|
||||||
data="?mw?Data Files"
|
data="?mw?Data Files"
|
||||||
|
data-local="?local?data"
|
||||||
resources=${MORROWIND_RESOURCE_FILES}
|
resources=${MORROWIND_RESOURCE_FILES}
|
||||||
|
|
Loading…
Reference in a new issue