From 7749e18ecc208f045604a2fdfba728583254b3a2 Mon Sep 17 00:00:00 2001 From: spycrab Date: Thu, 26 Apr 2018 14:42:00 +0200 Subject: [PATCH] ConfigManager: Enable Auto-Updater by default --- Source/Core/Common/scmrev.h.in | 1 + Source/Core/Core/ConfigManager.cpp | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Common/scmrev.h.in b/Source/Core/Common/scmrev.h.in index 6be4c461bb..df99e55f05 100644 --- a/Source/Core/Common/scmrev.h.in +++ b/Source/Core/Common/scmrev.h.in @@ -3,3 +3,4 @@ #define SCM_BRANCH_STR "${DOLPHIN_WC_BRANCH}" #define SCM_IS_MASTER ${DOLPHIN_WC_IS_STABLE} #define SCM_DISTRIBUTOR_STR "${DISTRIBUTOR}" +#define SCM_UPDATE_TRACK_STR "" diff --git a/Source/Core/Core/ConfigManager.cpp b/Source/Core/Core/ConfigManager.cpp index 252c443163..387c9a8e17 100644 --- a/Source/Core/Core/ConfigManager.cpp +++ b/Source/Core/Core/ConfigManager.cpp @@ -374,7 +374,7 @@ void SConfig::SaveAutoUpdateSettings(IniFile& ini) { IniFile::Section* section = ini.GetOrCreateSection("AutoUpdate"); - section->Set("TrackForTesting", m_auto_update_track); + section->Set("Track", m_auto_update_track); section->Set("HashOverride", m_auto_update_hash_override); } @@ -682,8 +682,7 @@ void SConfig::LoadAutoUpdateSettings(IniFile& ini) { IniFile::Section* section = ini.GetOrCreateSection("AutoUpdate"); - // TODO: Rename and default to SCM_UPDATE_TRACK_STR when ready for general consumption. - section->Get("TrackForTesting", &m_auto_update_track, ""); + section->Get("Track", &m_auto_update_track, SCM_UPDATE_TRACK_STR); section->Get("HashOverride", &m_auto_update_hash_override, ""); }