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

+2 -2
View File
@@ -159,7 +159,7 @@ void MainThreadFunc() {
if (performingRestart) {
// Okay, switching graphics didn't work out. Probably a driver bug - fallback to restart.
// This happens on NVIDIA when switching OpenGL -> Vulkan.
g_Config.Save();
g_Config.Save("switch_graphics_failed");
W32Util::ExitAndRestart();
}
@@ -196,7 +196,7 @@ void MainThreadFunc() {
g_Config.iGPUBackend = (int)nextBackend;
// Clear this to ensure we try their selection.
g_Config.sFailedGPUBackends.clear();
g_Config.Save();
g_Config.Save("save_graphics_fallback");
W32Util::ExitAndRestart();
} else {