settings: better if statements for settings versioning

This commit is contained in:
Luke Usher 2020-10-08 13:43:36 +01:00
parent a0ae63d030
commit 4271a857cc
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}