From 246519c5e15ecc7e60d72cee909a1b5e12fb3cb7 Mon Sep 17 00:00:00 2001 From: ADAS2024 <73618406+ADAS2024@users.noreply.github.com> Date: Sun, 17 Aug 2025 18:03:31 -0400 Subject: [PATCH] Fixes for AppImage not targeting Gamemode (#17398) Targets #17386 --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b0475c899..0492d13184 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,6 +62,7 @@ option(HAS_MEMORY_BREAKPOINTS "Add support for memory breakpoints to the interpr option(USE_LTO "Use LTO for building" ON) option(BUILD_RPCS3_TESTS "Build RPCS3 unit tests." OFF) option(RUN_RPCS3_TESTS "Run RPCS3 unit tests. Requires BUILD_RPCS3_TESTS" OFF) +option(USE_GAMEMODE "Choose whether to enable GameMode features or not." ON) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/buildfiles/cmake") @@ -166,11 +167,10 @@ endif() ## Look for Gamemode if its installed on Linux if(LINUX) - find_program(GAMEMODE_FOUND gamemoded) ## Only works if gamemode is installed on system (might include lib32 case) - if(GAMEMODE_FOUND) + ## User chooses whether to Enable GameMode features or not + if(USE_GAMEMODE) add_compile_definitions(GAMEMODE_AVAILABLE) endif() - message(GAMEMODE_AVAILABLE="${GAMEMODE_AVAILABLE}") endif() # TODO: do real installation, including copying directory structure