mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
Move display sleep functions to emu callbacks
This commit is contained in:
parent
87db82cacd
commit
8d801dadc4
8 changed files with 38 additions and 48 deletions
|
|
@ -13,6 +13,7 @@
|
|||
#include "qt_camera_handler.h"
|
||||
#include "qt_music_handler.h"
|
||||
#include "rpcs3_version.h"
|
||||
#include "display_sleep_control.h"
|
||||
|
||||
#ifdef WITH_DISCORD_RPC
|
||||
#include "_discord_utils.h"
|
||||
|
|
@ -882,6 +883,9 @@ void gui_application::InitializeCallbacks()
|
|||
});
|
||||
};
|
||||
|
||||
callbacks.display_sleep_control_supported = [](){ return display_sleep_control_supported(); };
|
||||
callbacks.enable_display_sleep = [](bool enabled){ enable_display_sleep(enabled); };
|
||||
|
||||
callbacks.check_microphone_permissions = []()
|
||||
{
|
||||
#if QT_CONFIG(permissions)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue