Log why the config is being saved (we seem to do it a bit much at times)

This commit is contained in:
Henrik Rydgård committed 2019-02-23 11:55:44 +01:00
1 parent 24510b8187
commit d91f706206
16 files changed
+33 -35

No files matched your search

+4 -4
View File
@@ -759,25 +759,25 @@ namespace MainWindow {
case ID_OPTIONS_DIRECT3D9:
g_Config.iGPUBackend = (int)GPUBackend::DIRECT3D9;
g_Config.Save();
g_Config.Save("gpu_choice");
RestartApp();
break;
case ID_OPTIONS_DIRECT3D11:
g_Config.iGPUBackend = (int)GPUBackend::DIRECT3D11;
g_Config.Save();
g_Config.Save("gpu_choice");
RestartApp();
break;
case ID_OPTIONS_OPENGL:
g_Config.iGPUBackend = (int)GPUBackend::OPENGL;
g_Config.Save();
g_Config.Save("gpu_choice");
RestartApp();
break;
case ID_OPTIONS_VULKAN:
g_Config.iGPUBackend = (int)GPUBackend::VULKAN;
g_Config.Save();
g_Config.Save("gpu_choice");
RestartApp();
break;