Skip to content

Commit

Permalink
android: add basic support for google game dashboard (#7430)
Browse files Browse the repository at this point in the history
This adds support for the Performance and Battery Saver modes in the Game Dashboard mostly found on Google Pixel devices.
This does not yet define the specifics for the performance modes but does provide the initial basic support.

Co-authored-by: Emma <[email protected]>
  • Loading branch information
FearlessTobi and GayPotatoEmma committed Feb 11, 2024
1 parent de993dc commit b9c9bee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
android:banner="@mipmap/ic_launcher"
android:requestLegacyExternalStorage="true">

<meta-data android:name="android.game_mode_config"
android:resource="@xml/game_mode_config" />

<activity
android:name="org.citra.citra_emu.ui.main.MainActivity"
android:theme="@style/Theme.Citra.Splash.Main"
Expand Down
7 changes: 7 additions & 0 deletions src/android/app/src/main/res/xml/game_mode_config.xml
Original file line number Diff line number Diff line change
@@ -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"/>

0 comments on commit b9c9bee

Please sign in to comment.