summaryrefslogtreecommitdiffstats
path: root/logic/BaseInstance.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-09-04 02:10:29 +0200
committerPetr Mrázek <peterix@gmail.com>2015-09-04 02:10:29 +0200
commitcd108fd02975eac3a3fed2fde26c58de5cbdaf1c (patch)
treec19f22573086901238b7feacd9b265d249195700 /logic/BaseInstance.cpp
parent151a0ca11ec658525e151b7130543a364c41a3e8 (diff)
downloadMultiMC-cd108fd02975eac3a3fed2fde26c58de5cbdaf1c.tar
MultiMC-cd108fd02975eac3a3fed2fde26c58de5cbdaf1c.tar.gz
MultiMC-cd108fd02975eac3a3fed2fde26c58de5cbdaf1c.tar.lz
MultiMC-cd108fd02975eac3a3fed2fde26c58de5cbdaf1c.tar.xz
MultiMC-cd108fd02975eac3a3fed2fde26c58de5cbdaf1c.zip
GH-1223 fix override settings
They now work more like passthrough settings, except not passing through set and reset
Diffstat (limited to 'logic/BaseInstance.cpp')
-rw-r--r--logic/BaseInstance.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/logic/BaseInstance.cpp b/logic/BaseInstance.cpp
index 9ed7ce50..3e02235e 100644
--- a/logic/BaseInstance.cpp
+++ b/logic/BaseInstance.cpp
@@ -40,16 +40,16 @@ BaseInstance::BaseInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr s
m_settings->registerSetting("lastLaunchTime", 0);
// Custom Commands
- m_settings->registerSetting({"OverrideCommands","OverrideLaunchCmd"}, false);
- m_settings->registerOverride(globalSettings->getSetting("PreLaunchCommand"));
- m_settings->registerOverride(globalSettings->getSetting("WrapperCommand"));
- m_settings->registerOverride(globalSettings->getSetting("PostExitCommand"));
+ auto commandSetting = m_settings->registerSetting({"OverrideCommands","OverrideLaunchCmd"}, false);
+ m_settings->registerOverride(globalSettings->getSetting("PreLaunchCommand"), commandSetting);
+ m_settings->registerOverride(globalSettings->getSetting("WrapperCommand"), commandSetting);
+ m_settings->registerOverride(globalSettings->getSetting("PostExitCommand"), commandSetting);
// Console
- m_settings->registerSetting("OverrideConsole", false);
- m_settings->registerOverride(globalSettings->getSetting("ShowConsole"));
- m_settings->registerOverride(globalSettings->getSetting("AutoCloseConsole"));
- m_settings->registerOverride(globalSettings->getSetting("LogPrePostOutput"));
+ auto consoleSetting = m_settings->registerSetting("OverrideConsole", false);
+ m_settings->registerOverride(globalSettings->getSetting("ShowConsole"), consoleSetting);
+ m_settings->registerOverride(globalSettings->getSetting("AutoCloseConsole"), consoleSetting);
+ m_settings->registerOverride(globalSettings->getSetting("LogPrePostOutput"), consoleSetting);
}
QString BaseInstance::getPreLaunchCommand()