From 50ec74784052b87dcf3a09d682beae8f1c8c8037 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sun, 18 Oct 2020 13:06:11 -0500 Subject: Clean up screen saver inhibition and apply setting change immediately. --- Source/Core/DolphinNoGUI/PlatformWin32.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Core/DolphinNoGUI/PlatformWin32.cpp') 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; } -- cgit v1.2.3