From 4271a857cc2e73b9df8fb925293acffe914a68c7 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Thu, 8 Oct 2020 13:43:36 +0100 Subject: [PATCH] settings: better if statements for settings versioning --- src/common/Settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/Settings.cpp b/src/common/Settings.cpp index 1197e13a3..8353de99b 100644 --- a/src/common/Settings.cpp +++ b/src/common/Settings.cpp @@ -904,7 +904,7 @@ CXBX_DATA Settings::SetupFile(std::string& file_path_out) void Settings::RemoveLegacyConfigs(unsigned int CurrentRevision) { - if (CurrentRevision == 4) { + if (CurrentRevision < 5) { m_si.Delete(section_controller_dinput, nullptr, true); m_si.Delete(section_controller_port, nullptr, true); } @@ -948,7 +948,7 @@ void Settings::RemoveLegacyConfigs(unsigned int CurrentRevision) } } - if(CurrentRevision == 9) { + if(CurrentRevision < 9) { m_si.Delete(section_video, "HardwareYUV", true); } }