summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2024-01-07 16:43:53 +0100
committerGitHub <noreply@github.com>2024-01-07 16:43:53 +0100
commit1220309323aceccb8389b4ce0eb16497fb21eaeb (patch)
tree634665dd5801c5fc279b466758d149d81eccf054
parentMerge pull request #12601 from german77/rocket (diff)
parentandroid: add basic support for google game dashboard (diff)
downloadyuzu-1220309323aceccb8389b4ce0eb16497fb21eaeb.tar
yuzu-1220309323aceccb8389b4ce0eb16497fb21eaeb.tar.gz
yuzu-1220309323aceccb8389b4ce0eb16497fb21eaeb.tar.bz2
yuzu-1220309323aceccb8389b4ce0eb16497fb21eaeb.tar.lz
yuzu-1220309323aceccb8389b4ce0eb16497fb21eaeb.tar.xz
yuzu-1220309323aceccb8389b4ce0eb16497fb21eaeb.tar.zst
yuzu-1220309323aceccb8389b4ce0eb16497fb21eaeb.zip
-rw-r--r--src/android/app/src/main/AndroidManifest.xml3
-rw-r--r--src/android/app/src/main/res/xml/game_mode_config.xml7
2 files changed, 10 insertions, 0 deletions
diff --git a/src/android/app/src/main/AndroidManifest.xml b/src/android/app/src/main/AndroidManifest.xml
index f10131b24..f011bd696 100644
--- a/src/android/app/src/main/AndroidManifest.xml
+++ b/src/android/app/src/main/AndroidManifest.xml
@@ -31,6 +31,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
android:dataExtractionRules="@xml/data_extraction_rules_api_31"
android:enableOnBackInvokedCallback="true">
+ <meta-data android:name="android.game_mode_config"
+ android:resource="@xml/game_mode_config" />
+
<activity
android:name="org.yuzu.yuzu_emu.ui.main.MainActivity"
android:exported="true"
diff --git a/src/android/app/src/main/res/xml/game_mode_config.xml b/src/android/app/src/main/res/xml/game_mode_config.xml
new file mode 100644
index 000000000..b28dd3a11
--- /dev/null
+++ b/src/android/app/src/main/res/xml/game_mode_config.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<game-mode-config
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:supportsBatteryGameMode="true"
+ android:supportsPerformanceGameMode="true"
+ android:allowGameDownscaling="false"
+ android:allowGameFpsOverride="false"/>