mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
Allows the user to switch between performance and battery saving modes (#422)
* add game_mode_config in mainfest * add ``game_mode_config``
This commit is contained in:
parent
9d8868cffd
commit
43dfda0f19
2 changed files with 11 additions and 0 deletions
|
@ -20,6 +20,10 @@
|
||||||
android:hardwareAccelerated="true"
|
android:hardwareAccelerated="true"
|
||||||
android:theme="@style/Theme.Pandroid"
|
android:theme="@style/Theme.Pandroid"
|
||||||
tools:targetApi="31">
|
tools:targetApi="31">
|
||||||
|
|
||||||
|
<meta-data android:name="android.game_mode_config"
|
||||||
|
android:resource="@xml/game_mode_config" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".app.MainActivity"
|
android:name=".app.MainActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
|
|
7
src/pandroid/app/src/main/res/xml/game_mode_config.xml
Normal file
7
src/pandroid/app/src/main/res/xml/game_mode_config.xml
Normal file
|
@ -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"/>
|
Loading…
Add table
Reference in a new issue