Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Commit

Permalink
temporarily disabled multi data path support in OpenMW
Browse files Browse the repository at this point in the history
  • Loading branch information
zinnschlag committed Feb 28, 2012
1 parent 9a4cd6c commit 4c2fffd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 6 additions & 3 deletions apps/openmw/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,15 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
std::string local(variables["data-local"].as<std::string>());
if (!local.empty())
{
dataDirs.push_back(Files::PathContainer::value_type(local));
std::cout << "Ignoring data-local (currently not supported)" << std::endl;
// dataDirs.push_back(Files::PathContainer::value_type(local));
}

if (dataDirs.empty())
if (dataDirs.size()>1)
{
dataDirs.push_back(cfgMgr.getLocalPath());
dataDirs.resize (1);
std::cout << "Ignoring all but the first data path (multiple data paths currently not supported)"
<< std::endl;
}

cfgMgr.processPaths(dataDirs);
Expand Down
3 changes: 0 additions & 3 deletions files/openmw.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
data="?mw?Data Files"
data="?global?data"
data="?local?data"
data-local="?user?data"
resources=${MORROWIND_RESOURCE_FILES}

0 comments on commit 4c2fffd

Please sign in to comment.