mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-15 12:38:18 +00:00
24ebb54971
As Vulkan crashes immediately on launch on a lot of Android devices (for around 15% of users that commented on the Android beta on Discord). The previous usage of the OpenGL backend in the shortcuts was incorrect, as this backend is not strictly available on Android and the GLES backend should be used instead, as this is also what is displayed in the graphics settings.
31 lines
930 B
XML
31 lines
930 B
XML
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<shortcut
|
|
android:shortcutId="play-vulkan"
|
|
android:enabled="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:shortcutShortLabel="@string/shortcut_play_vulkan_short">
|
|
<intent
|
|
android:action="android.intent.action.VIEW"
|
|
android:targetPackage="org.ddnet.client"
|
|
android:targetClass="org.ddnet.client.NativeMain">
|
|
<extra
|
|
android:name="gfx-backend"
|
|
android:value="Vulkan" />
|
|
</intent>
|
|
</shortcut>
|
|
<shortcut
|
|
android:shortcutId="play-gles"
|
|
android:enabled="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:shortcutShortLabel="@string/shortcut_play_gles_short">
|
|
<intent
|
|
android:action="android.intent.action.VIEW"
|
|
android:targetPackage="org.ddnet.client"
|
|
android:targetClass="org.ddnet.client.NativeMain">
|
|
<extra
|
|
android:name="gfx-backend"
|
|
android:value="GLES" />
|
|
</intent>
|
|
</shortcut>
|
|
</shortcuts>
|