forked from teamnwah/openmw-tes3coop
changed game/addon to content for writing to openmw.cfg from launcher
This commit is contained in:
parent
1d4b5a2425
commit
dace904490
2 changed files with 3 additions and 2 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue