mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Merge pull request #1207 from kemenaran/persist-citra-settings-in-qt
citra-qt: save hardware-rendering and shaders-jit settings
This commit is contained in:
commit
7411aed5c7
1 changed files with 8 additions and 0 deletions
|
@ -443,10 +443,18 @@ void GMainWindow::OnOpenHotkeysDialog() {
|
||||||
|
|
||||||
void GMainWindow::SetHardwareRendererEnabled(bool enabled) {
|
void GMainWindow::SetHardwareRendererEnabled(bool enabled) {
|
||||||
VideoCore::g_hw_renderer_enabled = enabled;
|
VideoCore::g_hw_renderer_enabled = enabled;
|
||||||
|
|
||||||
|
Config config;
|
||||||
|
Settings::values.use_hw_renderer = enabled;
|
||||||
|
config.Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::SetShaderJITEnabled(bool enabled) {
|
void GMainWindow::SetShaderJITEnabled(bool enabled) {
|
||||||
VideoCore::g_shader_jit_enabled = enabled;
|
VideoCore::g_shader_jit_enabled = enabled;
|
||||||
|
|
||||||
|
Config config;
|
||||||
|
Settings::values.use_shader_jit = enabled;
|
||||||
|
config.Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::ToggleWindowMode() {
|
void GMainWindow::ToggleWindowMode() {
|
||||||
|
|
Loading…
Reference in a new issue