mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 11:23:51 +00:00
Fixed data-local directory handling in the launcher
This commit is contained in:
parent
3e794a6087
commit
97326ffdbf
1 changed files with 2 additions and 4 deletions
|
@ -208,12 +208,10 @@ bool DataFilesPage::setupDataFiles()
|
||||||
|
|
||||||
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));
|
mDataDirs.push_back(Files::PathContainer::value_type(local));
|
||||||
|
mDataLocal.push_back(Files::PathContainer::value_type(local)); // For config writing
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mDataDirs.size()>1)
|
|
||||||
mDataDirs.resize (1);
|
|
||||||
|
|
||||||
mCfgMgr.processPaths(mDataDirs);
|
mCfgMgr.processPaths(mDataDirs);
|
||||||
|
|
||||||
while (mDataDirs.empty()) {
|
while (mDataDirs.empty()) {
|
||||||
|
|
Loading…
Reference in a new issue