summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r--src/yuzu_cmd/yuzu.cpp12
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;
63} 63}
64#endif 64#endif
65 65
66#ifdef __unix__
67#include "common/linux/gamemode.h"
68#endif
69
66static void PrintHelp(const char* argv0) { 70static void PrintHelp(const char* argv0) {
67 std::cout << "Usage: " << argv0 71 std::cout << "Usage: " << argv0
68 << " [options] <filename>\n" 72 << " [options] <filename>\n"
@@ -425,6 +429,10 @@ int main(int argc, char** argv) {
425 exit(0); 429 exit(0);
426 }); 430 });
427 431
432#ifdef __unix__
433 Common::Linux::StartGamemode();
434#endif
435
428 void(system.Run()); 436 void(system.Run());
429 if (system.DebuggerEnabled()) { 437 if (system.DebuggerEnabled()) {
430 system.InitializeDebugger(); 438 system.InitializeDebugger();
@@ -436,6 +444,10 @@ int main(int argc, char** argv) {
436 void(system.Pause()); 444 void(system.Pause());
437 system.ShutdownMainProcess(); 445 system.ShutdownMainProcess();
438 446
447#ifdef __unix__
448 Common::Linux::StopGamemode();
449#endif
450
439 detached_tasks.WaitForAllTasks(); 451 detached_tasks.WaitForAllTasks();
440 return 0; 452 return 0;
441} 453}