mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Merge pull request #5232 from MerryMage/osx-screensaver
Disable screensaver on OS X
This commit is contained in:
@ -23,6 +23,10 @@
|
||||
#include "UICommon/X11Utils.h"
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <IOKit/pwr_mgt/IOPMLib.h>
|
||||
#endif
|
||||
|
||||
// Class declarations
|
||||
class CGameListCtrl;
|
||||
class CCodeWindow;
|
||||
@ -226,6 +230,13 @@ private:
|
||||
WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
||||
#endif
|
||||
|
||||
// Screensaver
|
||||
#ifdef __APPLE__
|
||||
IOPMAssertionID m_power_assertion = kIOPMNullAssertionID;
|
||||
#endif
|
||||
void InhibitScreensaver();
|
||||
void UninhibitScreensaver();
|
||||
|
||||
void DoOpen(bool Boot);
|
||||
void DoPause();
|
||||
void DoToggleToolbar(bool);
|
||||
|
Reference in New Issue
Block a user