Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

android: add basic support for google game dashboard

Emmace022aa94149
diff --git a/src/android/app/src/main/AndroidManifest.xml b/src/android/app/src/main/AndroidManifest.xml
index f10131b244..f011bd6961 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 0000000000..b28dd3a11a
--- /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"/>