diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-11-29 12:33:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 12:33:09 -0500 |
commit | 337e37f91dcc7d5b6a0a5da3f3196aa0f8df4143 (patch) | |
tree | 70d10b1f7919e6ed6709acab3259c69b038add6c /src/yuzu_cmd/yuzu.cpp | |
parent | 992ca8c358a5c25840d822ca19baa6c64c689088 (diff) | |
parent | ac11f6e4c5da64db5a6fb2647afbb85164f06086 (diff) |
Merge pull request #11946 from flodavid/gamemode
Enable (Feral Interactive) Gamemode on Linux
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 0416d5951..a81635fa4 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -63,6 +63,10 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; } #endif +#ifdef __unix__ +#include "common/linux/gamemode.h" +#endif + static void PrintHelp(const char* argv0) { std::cout << "Usage: " << argv0 << " [options] <filename>\n" @@ -425,6 +429,10 @@ int main(int argc, char** argv) { exit(0); }); +#ifdef __unix__ + Common::Linux::StartGamemode(); +#endif + void(system.Run()); if (system.DebuggerEnabled()) { system.InitializeDebugger(); @@ -436,6 +444,10 @@ int main(int argc, char** argv) { void(system.Pause()); system.ShutdownMainProcess(); +#ifdef __unix__ + Common::Linux::StopGamemode(); +#endif + detached_tasks.WaitForAllTasks(); return 0; } |