summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/PlatformWin32.cpp
diff options
context:
space:
mode:
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;
}