Fixed data-local directory handling in the launcher

actorid
Pieter van der Kloet 12 years ago
parent 3e794a6087
commit 97326ffdbf

@ -208,12 +208,10 @@ bool DataFilesPage::setupDataFiles()
std::string local = variables["data-local"].as<std::string>();
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);
while (mDataDirs.empty()) {

Loading…
Cancel
Save