Qt: Remove old vsync mode migration function

Been over a year.
This commit is contained in:
Stenzek
2025-09-29 00:35:29 +10:00
parent 5c9e28f115
commit 9807948ac1

View File

@@ -120,7 +120,6 @@ static bool SetDataDirectory();
static bool SetCriticalFolders();
static void LoadResources();
static void SetDefaultSettings(SettingsInterface& si, bool system, bool controller);
static void MigrateSettings();
static void SaveSettings();
static bool RunSetupWizard();
static void UpdateFontOrder(std::string_view language);
@@ -515,7 +514,6 @@ bool QtHost::InitializeConfig()
EmuFolders::LoadConfig(s_state.base_settings_interface);
EmuFolders::EnsureFoldersExist();
MigrateSettings();
// We need to create the console window early, otherwise it appears in front of the main window.
if (!Log::IsConsoleOutputEnabled() && s_state.base_settings_interface.GetBoolValue("Logging", "LogToConsole", false))
@@ -651,21 +649,6 @@ void QtHost::SetDefaultSettings(SettingsInterface& si, bool system, bool control
}
}
void QtHost::MigrateSettings()
{
SmallString value;
if (s_state.base_settings_interface.GetStringValue("Display", "SyncMode", &value))
{
s_state.base_settings_interface.SetBoolValue("Display", "VSync", (value == "VSync" || value == "VSyncRelaxed"));
s_state.base_settings_interface.SetBoolValue(
"Display", "OptimalFramePacing",
(value == "VRR" || s_state.base_settings_interface.GetBoolValue("Display", "DisplayAllFrames", false)));
s_state.base_settings_interface.DeleteValue("Display", "SyncMode");
s_state.base_settings_interface.DeleteValue("Display", "DisplayAllFrames");
s_state.base_settings_interface.Save();
}
}
bool QtHost::CanRenderToMainWindow()
{
return !Host::GetBoolSettingValue("Main", "RenderToSeparateWindow", false) && !InNoGUIMode();