changed game/addon to content for writing to openmw.cfg from launcher

This commit is contained in:
graffy76 2013-11-03 16:45:18 -06:00
parent 1d4b5a2425
commit dace904490
2 changed files with 3 additions and 2 deletions

View file

@ -104,10 +104,10 @@ void Launcher::DataFilesPage::saveSettings(const QString &profile)
if (item->gameFiles().size() == 0) { if (item->gameFiles().size() == 0) {
mLauncherSettings.setMultiValue(QString("Profiles/") + profileName + QString("/game"), item->fileName()); mLauncherSettings.setMultiValue(QString("Profiles/") + profileName + QString("/game"), item->fileName());
mGameSettings.setMultiValue(QString("game"), item->fileName()); mGameSettings.setMultiValue(QString("content"), item->fileName());
} else { } else {
mLauncherSettings.setMultiValue(QString("Profiles/") + profileName + QString("/addon"), item->fileName()); mLauncherSettings.setMultiValue(QString("Profiles/") + profileName + QString("/addon"), item->fileName());
mGameSettings.setMultiValue(QString("addon"), item->fileName()); mGameSettings.setMultiValue(QString("content"), item->fileName());
} }
} }

View file

@ -94,6 +94,7 @@ void CS::Editor::setupDataFiles()
for (Files::PathContainer::const_iterator iter = dataDirs.begin(); iter != dataDirs.end(); ++iter) for (Files::PathContainer::const_iterator iter = dataDirs.begin(); iter != dataDirs.end(); ++iter)
{ {
QString path = QString::fromStdString(iter->string()); QString path = QString::fromStdString(iter->string());
mFileDialog.addFiles(path); mFileDialog.addFiles(path);
} }