mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-10 01:54:46 -06:00
28 lines
593 B
C++
28 lines
593 B
C++
#include "gamemode_control.h"
|
|
|
|
#ifdef GAMEMODE_AVAILABLE
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
extern "C" {
|
|
#include "3rdparty/feralinteractive/feralinteractive/lib/gamemode_client.h"
|
|
}
|
|
#pragma GCC diagnostic pop
|
|
#endif
|
|
|
|
// Enables and Disables GameMode based on user settings and system
|
|
void enable_gamemode([[maybe_unused]] bool enabled)
|
|
{
|
|
#if defined(GAMEMODE_AVAILABLE)
|
|
// Enable and Disable Gamemode
|
|
if (enabled)
|
|
{
|
|
gamemode_request_start();
|
|
}
|
|
else
|
|
{
|
|
gamemode_request_end();
|
|
}
|
|
#endif
|
|
}
|