summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/PlatformWin32.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-10-20 01:20:24 +0200
committerGitHub <noreply@github.com>2020-10-20 01:20:24 +0200
commit8a8dc3db83117973874236e4eeba30e467604066 (patch)
tree826ddf47af137a6bb56c05d5fd7121378017c2fe /Source/Core/DolphinNoGUI/PlatformWin32.cpp
parent55b49248994e8c595218892c4c34fe119bd6381b (diff)
parent50ec74784052b87dcf3a09d682beae8f1c8c8037 (diff)
Merge pull request #8613 from jordan-woyak/expose-disable-ss
Config: Expose "DisableScreenSaver" in the UI and default it to true.
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;
}