diff options
| author | 2023-11-03 15:41:16 +0100 | |
|---|---|---|
| committer | 2023-11-25 19:30:37 +0100 | |
| commit | 40644d43f700cb0075db0eea288078bda7cf4527 (patch) | |
| tree | 876d26a64a803d2b1509e71a13fe822f1e851c00 /src/common/linux/gamemode.h | |
| parent | yuzu: integrate gamemode support on linux (diff) | |
| download | yuzu-40644d43f700cb0075db0eea288078bda7cf4527.tar.gz yuzu-40644d43f700cb0075db0eea288078bda7cf4527.tar.xz yuzu-40644d43f700cb0075db0eea288078bda7cf4527.zip | |
yuzu: create linux group in general settings
- Create files dedicated to starting and stopping gamemode functions
- Use them in yuzu and yuzu_cmd modules
Diffstat (limited to 'src/common/linux/gamemode.h')
| -rw-r--r-- | src/common/linux/gamemode.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/common/linux/gamemode.h b/src/common/linux/gamemode.h new file mode 100644 index 000000000..b80646ae2 --- /dev/null +++ b/src/common/linux/gamemode.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | namespace Common::Linux { | ||
| 7 | |||
| 8 | /** | ||
| 9 | * Start the (Feral Interactive) Linux gamemode if it is installed and it is activated | ||
| 10 | */ | ||
| 11 | void StartGamemode(); | ||
| 12 | |||
| 13 | /** | ||
| 14 | * Stop the (Feral Interactive) Linux gamemode if it is installed and it is activated | ||
| 15 | */ | ||
| 16 | void StopGamemode(); | ||
| 17 | |||
| 18 | /** | ||
| 19 | * Start or stop the (Feral Interactive) Linux gamemode if it is installed and it is activated | ||
| 20 | * @param state The new state the gamemode should have | ||
| 21 | */ | ||
| 22 | void SetGamemodeState(bool state); | ||
| 23 | |||
| 24 | } // namespace Common::Linux | ||