diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-11-29 18:33:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 18:33:09 +0100 |
commit | 337e37f91dcc7d5b6a0a5da3f3196aa0f8df4143 (patch) | |
tree | 70d10b1f7919e6ed6709acab3259c69b038add6c /src/common/linux/gamemode.h | |
parent | Merge pull request #11902 from ameerj/ssbo-align (diff) | |
parent | cmake: move gamemode target include into its file (diff) | |
download | yuzu-337e37f91dcc7d5b6a0a5da3f3196aa0f8df4143.tar yuzu-337e37f91dcc7d5b6a0a5da3f3196aa0f8df4143.tar.gz yuzu-337e37f91dcc7d5b6a0a5da3f3196aa0f8df4143.tar.bz2 yuzu-337e37f91dcc7d5b6a0a5da3f3196aa0f8df4143.tar.lz yuzu-337e37f91dcc7d5b6a0a5da3f3196aa0f8df4143.tar.xz yuzu-337e37f91dcc7d5b6a0a5da3f3196aa0f8df4143.tar.zst yuzu-337e37f91dcc7d5b6a0a5da3f3196aa0f8df4143.zip |
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 @@ +// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +namespace Common::Linux { + +/** + * Start the (Feral Interactive) Linux gamemode if it is installed and it is activated + */ +void StartGamemode(); + +/** + * Stop the (Feral Interactive) Linux gamemode if it is installed and it is activated + */ +void StopGamemode(); + +/** + * Start or stop the (Feral Interactive) Linux gamemode if it is installed and it is activated + * @param state The new state the gamemode should have + */ +void SetGamemodeState(bool state); + +} // namespace Common::Linux |