mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-13 10:18:30 +12:00
Add cross-platform "disable screen saver" setting (#497)
This commit is contained in:
parent
80b1c50b50
commit
4c697d3755
7 changed files with 65 additions and 7 deletions
|
@ -112,11 +112,6 @@ void LattePerformanceMonitor_frameEnd()
|
|||
LatteOverlay_updateStats(fps, drawCallCounter / elapsedFrames);
|
||||
gui_updateWindowTitles(false, false, fps);
|
||||
}
|
||||
|
||||
// prevent hibernation and screen saver/monitor off
|
||||
#if BOOST_OS_WINDOWS
|
||||
SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED);
|
||||
#endif
|
||||
}
|
||||
LatteOverlay_updateStatsPerFrame();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue