mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 05:09:41 +00:00
Bug fix for processing data paths in OpenMW Launcher.
Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
This commit is contained in:
parent
771d50fe69
commit
c9a1789db8
1 changed files with 3 additions and 2 deletions
|
@ -188,8 +188,7 @@ 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>());
|
||||||
mCfgMgr.processPaths(dataDirs);
|
|
||||||
|
|
||||||
std::string local(variables["data-local"].as<std::string>());
|
std::string local(variables["data-local"].as<std::string>());
|
||||||
if (!local.empty())
|
if (!local.empty())
|
||||||
{
|
{
|
||||||
|
@ -201,6 +200,8 @@ void DataFilesPage::setupDataFiles()
|
||||||
dataDirs.push_back(mCfgMgr.getLocalPath());
|
dataDirs.push_back(mCfgMgr.getLocalPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mCfgMgr.processPaths(dataDirs);
|
||||||
|
|
||||||
// Create a file collection for the dataDirs
|
// Create a file collection for the dataDirs
|
||||||
Files::Collections fileCollections(dataDirs, !variables["fs-strict"].as<bool>());
|
Files::Collections fileCollections(dataDirs, !variables["fs-strict"].as<bool>());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue