summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/PlatformWin32.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2020-10-18 13:06:11 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2020-10-18 16:31:48 -0500
commit50ec74784052b87dcf3a09d682beae8f1c8c8037 (patch)
treebe3cd8c1029da5fbea0e99340aae2251432d5d0e /Source/Core/DolphinNoGUI/PlatformWin32.cpp
parentfa83a3a114484850f296f25aed3f48e16769b3c0 (diff)
Clean up screen saver inhibition and apply setting change immediately.
Diffstat (limited to 'Source/Core/DolphinNoGUI/PlatformWin32.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/PlatformWin32.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DolphinNoGUI/PlatformWin32.cpp b/Source/Core/DolphinNoGUI/PlatformWin32.cpp
index b9331f56ab..75d30b8b2c 100644
--- a/Source/Core/DolphinNoGUI/PlatformWin32.cpp
+++ b/Source/Core/DolphinNoGUI/PlatformWin32.cpp
@@ -107,6 +107,9 @@ bool PlatformWin32::Init()
ProcessEvents();
}
+ if (Config::Get(Config::MAIN_DISABLE_SCREENSAVER))
+ SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED);
+
UpdateWindowPosition();
return true;
}