diff options
author | flodavid <fl.david.53@gmail.com> | 2023-11-03 15:41:16 +0100 |
---|---|---|
committer | flodavid <fl.david.53@gmail.com> | 2023-11-25 19:30:37 +0100 |
commit | 40644d43f700cb0075db0eea288078bda7cf4527 (patch) | |
tree | 876d26a64a803d2b1509e71a13fe822f1e851c00 /src/yuzu_cmd | |
parent | yuzu: integrate gamemode support on linux (diff) | |
download | yuzu-40644d43f700cb0075db0eea288078bda7cf4527.tar yuzu-40644d43f700cb0075db0eea288078bda7cf4527.tar.gz yuzu-40644d43f700cb0075db0eea288078bda7cf4527.tar.bz2 yuzu-40644d43f700cb0075db0eea288078bda7cf4527.tar.lz yuzu-40644d43f700cb0075db0eea288078bda7cf4527.tar.xz yuzu-40644d43f700cb0075db0eea288078bda7cf4527.tar.zst yuzu-40644d43f700cb0075db0eea288078bda7cf4527.zip |
Diffstat (limited to 'src/yuzu_cmd')
-rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 1c3a1809b..a81635fa4 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -63,8 +63,8 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; } #endif -#ifdef __linux__ -#include <gamemode_client.h> +#ifdef __unix__ +#include "common/linux/gamemode.h" #endif static void PrintHelp(const char* argv0) { @@ -429,14 +429,8 @@ int main(int argc, char** argv) { exit(0); }); -#ifdef __linux__ - if (Settings::values.disable_gamemode) { - if (gamemode_request_start() < 0) { - LOG_WARNING(Frontend, "Failed to start gamemode: {}", gamemode_error_string()); - } else { - LOG_INFO(Frontend, "Started gamemode"); - } - } +#ifdef __unix__ + Common::Linux::StartGamemode(); #endif void(system.Run()); @@ -450,14 +444,8 @@ int main(int argc, char** argv) { void(system.Pause()); system.ShutdownMainProcess(); -#ifdef __linux__ - if (Settings::values.disable_gamemode) { - if (gamemode_request_end() < 0) { - LOG_WARNING(Frontend, "Failed to stop gamemode: {}", gamemode_error_string()); - } else { - LOG_INFO(Frontend, "Stopped gamemode"); - } - } +#ifdef __unix__ + Common::Linux::StopGamemode(); #endif detached_tasks.WaitForAllTasks(); |