diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2021-01-30 18:21:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-30 18:21:56 +0100 |
| commit | 3b360162e1d16f0f54e4163a16efe56fb50152c7 (patch) | |
| tree | 7c4184886251cf91ac0a6ad18d4a6641e6535b07 /src/settings.cpp | |
| parent | f53e5406d4292f484257178ec5733f6ceb116673 (diff) | |
| parent | 76989e2b8f6dc3cea2c2e90813feb86af2ecad14 (diff) | |
Merge pull request #1386 from Holt59/update-settings-dialog
Update settings dialog.
Diffstat (limited to 'src/settings.cpp')
| -rw-r--r-- | src/settings.cpp | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 142d3f39..20745873 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -612,62 +612,6 @@ void GameSettings::setSelectedProfileName(const QString& name) set(m_Settings, "General", "selected_profile", name.toUtf8()); } -LoadMechanism::EMechanism GameSettings::loadMechanismType() const -{ - const auto def = LoadMechanism::LOAD_MODORGANIZER; - - const auto i = get<LoadMechanism::EMechanism>(m_Settings, - "Settings", "load_mechanism", def); - - switch (i) - { - // ok - case LoadMechanism::LOAD_MODORGANIZER: // fall-through - { - break; - } - - default: - { - log::error( - "invalid load mechanism {}, reverting to {}", - static_cast<int>(i), toString(def)); - - set(m_Settings, "Settings", "load_mechanism", def); - - return def; - } - } - - return i; -} - -void GameSettings::setLoadMechanism(LoadMechanism::EMechanism m) -{ - set(m_Settings, "Settings", "load_mechanism", m); -} - -const LoadMechanism& GameSettings::loadMechanism() const -{ - return m_LoadMechanism; -} - -LoadMechanism& GameSettings::loadMechanism() -{ - return m_LoadMechanism; -} - -bool GameSettings::hideUncheckedPlugins() const -{ - return get<bool>(m_Settings, "Settings", "hide_unchecked_plugins", false); -} - -void GameSettings::setHideUncheckedPlugins(bool b) -{ - set(m_Settings, "Settings", "hide_unchecked_plugins", b); -} - - GeometrySettings::GeometrySettings(QSettings& s) : m_Settings(s), m_Reset(false) { |
