mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-15 05:45:46 -04:00
Qt: Add power off hotkey and confirmation message
This commit is contained in:
@ -776,6 +776,7 @@ void HostInterface::SetDefaultSettings()
|
||||
m_settings.increase_timer_resolution = true;
|
||||
m_settings.start_paused = false;
|
||||
m_settings.save_state_on_exit = true;
|
||||
m_settings.confim_power_off = true;
|
||||
|
||||
m_settings.gpu_renderer = Settings::DEFAULT_GPU_RENDERER;
|
||||
m_settings.gpu_resolution_scale = 1;
|
||||
|
@ -14,6 +14,7 @@ void Settings::Load(SettingsInterface& si)
|
||||
increase_timer_resolution = si.GetBoolValue("General", "IncreaseTimerResolution", true);
|
||||
start_paused = si.GetBoolValue("General", "StartPaused", false);
|
||||
save_state_on_exit = si.GetBoolValue("General", "SaveStateOnExit", true);
|
||||
confim_power_off = si.GetBoolValue("General", "ConfirmPowerOff", true);
|
||||
|
||||
cpu_execution_mode = ParseCPUExecutionMode(si.GetStringValue("CPU", "ExecutionMode", "Interpreter").c_str())
|
||||
.value_or(CPUExecutionMode::Interpreter);
|
||||
@ -67,6 +68,7 @@ void Settings::Save(SettingsInterface& si) const
|
||||
si.SetBoolValue("General", "IncreaseTimerResolution", increase_timer_resolution);
|
||||
si.SetBoolValue("General", "StartPaused", start_paused);
|
||||
si.SetBoolValue("General", "SaveStateOnExit", save_state_on_exit);
|
||||
si.SetBoolValue("General", "ConfirmPowerOff", confim_power_off);
|
||||
|
||||
si.SetStringValue("CPU", "ExecutionMode", GetCPUExecutionModeName(cpu_execution_mode));
|
||||
|
||||
|
@ -40,6 +40,7 @@ struct Settings
|
||||
bool increase_timer_resolution = true;
|
||||
bool start_paused = false;
|
||||
bool save_state_on_exit = true;
|
||||
bool confim_power_off = true;
|
||||
|
||||
GPURenderer gpu_renderer = GPURenderer::Software;
|
||||
u32 gpu_resolution_scale = 1;
|
||||
|
Reference in New Issue
Block a user