summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmma <153868115+GayPotatoEmma@users.noreply.github.com>2024-01-03 02:45:28 +0100
committerEmma <153868115+GayPotatoEmma@users.noreply.github.com>2024-01-04 01:07:43 +0100
commite5de3d5a77a736223edbd0e62562a916ef2aca61 (patch)
treee62fc634b1753e588570c9974c5bda09395a12e3 /src
parentMerge pull request #12554 from german77/directconnect (diff)
downloadyuzu-e5de3d5a77a736223edbd0e62562a916ef2aca61.tar
yuzu-e5de3d5a77a736223edbd0e62562a916ef2aca61.tar.gz
yuzu-e5de3d5a77a736223edbd0e62562a916ef2aca61.tar.bz2
yuzu-e5de3d5a77a736223edbd0e62562a916ef2aca61.tar.lz
yuzu-e5de3d5a77a736223edbd0e62562a916ef2aca61.tar.xz
yuzu-e5de3d5a77a736223edbd0e62562a916ef2aca61.tar.zst
yuzu-e5de3d5a77a736223edbd0e62562a916ef2aca61.zip
Diffstat (limited to 'src')
-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"/>