aboutsummaryrefslogtreecommitdiff
path: root/src/common/linux/gamemode.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2025-12-07 07:13:43 +0100
committercrueter <crueter@eden-emu.dev>2025-12-07 07:13:43 +0100
commit83332316aa382e11e6af79b8432520ff4c9950b6 (patch)
tree73c025c0deb6bd7095e908fecba15b1cf65120d0 /src/common/linux/gamemode.cpp
parent3141019fcd01f7b8da310c1a1fb233866fe7cf93 (diff)
[gamemode] Make available on other platforms (#353)
Signed-off-by: lizzie <lizzie@eden-emu.dev> Co-authored-by: crueter <crueter@eden-emu.dev> Co-authored-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/353 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/common/linux/gamemode.cpp')
-rw-r--r--src/common/linux/gamemode.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/common/linux/gamemode.cpp b/src/common/linux/gamemode.cpp
deleted file mode 100644
index 8d3e2934a6..0000000000
--- a/src/common/linux/gamemode.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include <gamemode_client.h>
-
-#include "common/linux/gamemode.h"
-#include "common/logging/log.h"
-#include "common/settings.h"
-
-namespace Common::Linux {
-
-void StartGamemode() {
- if (Settings::values.enable_gamemode) {
- if (gamemode_request_start() < 0) {
- LOG_WARNING(Frontend, "Failed to start gamemode: {}", gamemode_error_string());
- } else {
- LOG_INFO(Frontend, "Started gamemode");
- }
- }
-}
-
-void StopGamemode() {
- if (Settings::values.enable_gamemode) {
- if (gamemode_request_end() < 0) {
- LOG_WARNING(Frontend, "Failed to stop gamemode: {}", gamemode_error_string());
- } else {
- LOG_INFO(Frontend, "Stopped gamemode");
- }
- }
-}
-
-void SetGamemodeState(bool state) {
- if (state) {
- StartGamemode();
- } else {
- StopGamemode();
- }
-}
-
-} // namespace Common::Linux