mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 23:06:23 -05:00
citra-qt: persist hardware-rendering and shaders-jit settings
Before this changing these settings from the GUI would apply the settings, but they were reseted to the default values when exiting citra.
This commit is contained in:
parent
04325e5980
commit
71f6672415
1 changed files with 8 additions and 0 deletions
|
@ -443,10 +443,18 @@ void GMainWindow::OnOpenHotkeysDialog() {
|
|||
|
||||
void GMainWindow::SetHardwareRendererEnabled(bool enabled) {
|
||||
VideoCore::g_hw_renderer_enabled = enabled;
|
||||
|
||||
Config config;
|
||||
Settings::values.use_hw_renderer = enabled;
|
||||
config.Save();
|
||||
}
|
||||
|
||||
void GMainWindow::SetShaderJITEnabled(bool enabled) {
|
||||
VideoCore::g_shader_jit_enabled = enabled;
|
||||
|
||||
Config config;
|
||||
Settings::values.use_shader_jit = enabled;
|
||||
config.Save();
|
||||
}
|
||||
|
||||
void GMainWindow::ToggleWindowMode() {
|
||||
|
|
Loading…
Reference in a new issue