rpcs3/rpcs3/gamemode_control.cpp
2026-05-30 23:58:51 +02:00

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
}