mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
dc0d4b3b76
Define shortcuts to launch the client with either Vulkan or OpenGL graphics backend, which can be accessed by long-pressing the app icon on the home screen. This feature is available for Android 7.1 and newer.
31 lines
936 B
XML
31 lines
936 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-opengl"
|
|
android:enabled="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:shortcutShortLabel="@string/shortcut_play_opengl_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="OpenGL" />
|
|
</intent>
|
|
</shortcut>
|
|
</shortcuts>
|