diff options
| author | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2023-09-19 11:19:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-19 18:19:39 +0200 |
| commit | 70509275405d2a5c5e94743786f03b17ef2051f2 (patch) | |
| tree | e98fb95afcd9e8ce499ff02351e3ad963a9c76f8 /src/createinstancedialog.cpp | |
| parent | 59b5b1cfca1614df681055d98d602692f482f0e2 (diff) | |
Default profile settings (#1869)
* Fix archive parsing and BSA invalidation
Diffstat (limited to 'src/createinstancedialog.cpp')
| -rw-r--r-- | src/createinstancedialog.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/createinstancedialog.cpp b/src/createinstancedialog.cpp index c5f51e0e..d50a2063 100644 --- a/src/createinstancedialog.cpp +++ b/src/createinstancedialog.cpp @@ -110,6 +110,7 @@ CreateInstanceDialog::CreateInstanceDialog(const PluginContainer& pc, Settings* m_pages.push_back(std::make_unique<GamePage>(*this)); m_pages.push_back(std::make_unique<VariantsPage>(*this)); m_pages.push_back(std::make_unique<NamePage>(*this)); + m_pages.push_back(std::make_unique<ProfilePage>(*this)); m_pages.push_back(std::make_unique<PathsPage>(*this)); m_pages.push_back(std::make_unique<NexusPage>(*this)); m_pages.push_back(std::make_unique<ConfirmationPage>(*this)); @@ -355,6 +356,10 @@ void CreateInstanceDialog::finish() s.paths().setOverwrite(ci.paths.overwrite); } + s.setProfileLocalInis(ci.profileSettings.localInis); + s.setProfileLocalSaves(ci.profileSettings.localSaves); + s.setProfileArchiveInvalidation(ci.profileSettings.archiveInvalidation); + logCreation(tr("Writing %1...").arg(ci.iniPath)); // writing ini @@ -475,12 +480,13 @@ CreateInstanceDialog::CreationInfo CreateInstanceDialog::rawCreationInfo() const CreationInfo ci; - ci.type = getSelected(&cid::Page::selectedInstanceType); - ci.game = getSelected(&cid::Page::selectedGame); - ci.gameLocation = getSelected(&cid::Page::selectedGameLocation); - ci.gameVariant = getSelected(&cid::Page::selectedGameVariant, ci.game); - ci.instanceName = getSelected(&cid::Page::selectedInstanceName); - ci.paths = getSelected(&cid::Page::selectedPaths); + ci.type = getSelected(&cid::Page::selectedInstanceType); + ci.game = getSelected(&cid::Page::selectedGame); + ci.gameLocation = getSelected(&cid::Page::selectedGameLocation); + ci.gameVariant = getSelected(&cid::Page::selectedGameVariant, ci.game); + ci.instanceName = getSelected(&cid::Page::selectedInstanceName); + ci.profileSettings = getSelected(&cid::Page::profileSettings); + ci.paths = getSelected(&cid::Page::selectedPaths); if (ci.type == Portable) { ci.dataPath = QDir(InstanceManager::singleton().portablePath()).absolutePath(); |
