Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

MERGE: Improve Gamehub support (#128)

Bixe2f4c16d27f7
diff --git a/src/android/app/src/main/AndroidManifest.xml b/src/android/app/src/main/AndroidManifest.xml
index 51b1d1bc58..0a43b13e1c 100644
--- a/src/android/app/src/main/AndroidManifest.xml
+++ b/src/android/app/src/main/AndroidManifest.xml
@@ -4,6 +4,10 @@
SPDX-FileCopyrightText: 2023 yuzu Emulator Project
SPDX-License-Identifier: GPL-3.0-or-later
-->
+<!--
+SPDX-FileCopyrightText: Eden Emulator Project
+SPDX-License-Identifier: GPL-3.0-or-later
+-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
@@ -16,6 +20,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
+ <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" android:required="false" />
<application
android:name="org.yuzu.yuzu_emu.YuzuApplication"
@@ -31,23 +36,19 @@ SPDX-License-Identifier: GPL-3.0-or-later
android:dataExtractionRules="@xml/data_extraction_rules_api_31"
android:enableOnBackInvokedCallback="true">
- <meta-data
- android:name="com.samsung.android.gamehub"
- android:value="true" />
+ <meta-data android:name="com.samsung.android.gamehub" android:value="true" />
+ <meta-data android:name="com.xiaomi.gamecenter.sdk.service.enabled" android:value="true" />
+ <meta-data android:name="com.asus.gamecenter.gamebooster" android:value="true" />
+ <meta-data android:name="com.oneplus.gamespace.gamebooster" android:value="true" />
+ <meta-data android:name="android.game_mode_config" android:resource="@xml/game_mode_config" />
- <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"
android:theme="@style/Theme.Yuzu.Splash.Main">
-
- <!-- This intentfilter marks this Activity as the one that gets launched from Home screen. -->
<intent-filter>
+ <action android:name="com.miui.gamecenter.GAME_BOOSTER_LAUNCH"/>
<action android:name="android.intent.action.MAIN" />
-
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.GAME" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
@@ -66,24 +67,17 @@ SPDX-License-Identifier: GPL-3.0-or-later
android:supportsPictureInPicture="true"
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|uiMode"
android:exported="true">
-
<intent-filter>
<action android:name="android.nfc.action.TECH_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/octet-stream" />
</intent-filter>
-
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
- <data
- android:mimeType="application/octet-stream"
- android:scheme="content"/>
+ <data android:mimeType="application/octet-stream" android:scheme="content"/>
</intent-filter>
-
- <meta-data
- android:name="android.nfc.action.TECH_DISCOVERED"
- android:resource="@xml/nfc_tech_filter" />
+ <meta-data android:name="android.nfc.action.TECH_DISCOVERED" android:resource="@xml/nfc_tech_filter" />
</activity>
<provider
@@ -98,5 +92,4 @@ SPDX-License-Identifier: GPL-3.0-or-later
</provider>
</application>
-
-</manifest>
+</manifest>
\ No newline at end of file
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
index b28dd3a11a..8f6e90d0d2 100644
--- a/src/android/app/src/main/res/xml/game_mode_config.xml
+++ b/src/android/app/src/main/res/xml/game_mode_config.xml
@@ -4,4 +4,4 @@
android:supportsBatteryGameMode="true"
android:supportsPerformanceGameMode="true"
android:allowGameDownscaling="false"
- android:allowGameFpsOverride="false"/>
+ android:allowGameFpsOverride="false"/>
\ No newline at end of file