diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index e4a561c522..ba77d11a17 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -63,7 +63,6 @@ #include "llvm/Config/llvm-config.h" #endif - LOG_CHANNEL(sys_log, "SYS"); // Preallocate 32 MiB diff --git a/rpcs3/rpcs3qt/gui_application.cpp b/rpcs3/rpcs3qt/gui_application.cpp index 9f13cfdc41..14ed3a2c7f 100644 --- a/rpcs3/rpcs3qt/gui_application.cpp +++ b/rpcs3/rpcs3qt/gui_application.cpp @@ -951,8 +951,8 @@ 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.gamemode_supported = [](){ return gamemode_supported(); }; - //callbacks.enable_gamemode = [](bool enabled){ enable_gamemode(enabled); }; + callbacks.gamemode_supported = [](){ return gamemode_supported(); }; + callbacks.enable_gamemode = [](bool enabled){ enable_gamemode(enabled); }; callbacks.check_microphone_permissions = []() { diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index 1326f112d9..bd49c1fde8 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -96,6 +96,10 @@ #define RPCS3_UPDATE_SUPPORTED #endif +#ifdef GAMEMODE_AVAILABLE +#include "../gamemode_control.h" +#endif + LOG_CHANNEL(gui_log, "GUI"); extern atomic_t g_user_asked_for_frame_capture; @@ -287,6 +291,13 @@ bool main_window::Init([[maybe_unused]] bool with_cli_boot) update_gui_pad_thread(); + // Enable Gamemode +#if defined GAMEMODE_AVAILABLE && defined __linux__ + // NOTE: Compiler complains if I pass the config value directly so I have to do this + if (g_cfg.misc.enable_gamemode) { + enable_gamemode(true); + } +#endif return true; }