From d0796b4ab23122d5f01378743d93f8c75b19c35c Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Fri, 29 Jan 2021 19:43:24 +0100 Subject: Move settings around. Remove unused settings. --- src/settings.cpp | 56 -------------------------------------------------------- 1 file changed, 56 deletions(-) (limited to 'src/settings.cpp') 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(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(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(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) { -- cgit v1.3.1