aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordarktux <darktux@y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion>2024-04-05 01:58:29 +0200
committerBriar <205427297+icybriarr@users.noreply.github.com>2025-04-04 03:40:46 +0200
commit19a93a3fd1dd6a7db074d254990db073d62b08e3 (patch)
tree4c49c5d35356bc114211b7297a235d3809510ab5 /src
parent76a55dc00366778181d56d7e7d96956d92fcf28e (diff)
Android: Add ability to run Qlaunch
Diffstat (limited to 'src')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AppletLauncherFragment.kt6
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Applet.kt2
-rw-r--r--src/android/app/src/main/res/drawable/ic_home.xml10
-rw-r--r--src/android/app/src/main/res/values/strings.xml2
4 files changed, 19 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AppletLauncherFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AppletLauncherFragment.kt
index 73ca404841..1514e38289 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AppletLauncherFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AppletLauncherFragment.kt
@@ -72,6 +72,12 @@ class AppletLauncherFragment : Fragment() {
R.string.mii_edit_applet_description,
R.drawable.ic_mii,
AppletInfo.MiiEdit
+ ),
+ Applet(
+ R.string.qlaunch_applet,
+ R.string.qlaunch_description,
+ R.drawable.ic_home,
+ AppletInfo.QLaunch
)
)
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Applet.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Applet.kt
index 8677674a38..2845c71ec0 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Applet.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Applet.kt
@@ -20,7 +20,7 @@ enum class AppletInfo(val appletId: Int, val entryId: Long = 0) {
None(0x00),
Application(0x01),
OverlayDisplay(0x02),
- QLaunch(0x03),
+ QLaunch(0x03, 0x0100000000001000),
Starter(0x04),
Auth(0x0A),
Cabinet(0x0B, 0x0100000000001002),
diff --git a/src/android/app/src/main/res/drawable/ic_home.xml b/src/android/app/src/main/res/drawable/ic_home.xml
new file mode 100644
index 0000000000..01beae9af5
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_home.xml
@@ -0,0 +1,10 @@
+<vector android:alpha="1"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24"
+ xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillColor="?attr/colorControlNormal"
+ android:pathData="M21.59,11.31 L12.41,2.9a0.55,0.55 0,0 0,-0.75 0L2.47,11.31a0.54,0.54 0,0 0,0.38 0.93H4.41a0.35,0.35 0,0 1,0.35 0.35V20.32a0.54,0.54 0,0 0,0.54 0.54H18.77a0.54,0.54 0,0 0,0.54 -0.54V12.58a0.35,0.35 0,0 1,0.35 -0.35H21.21A0.54,0.54 0,0 0,21.59 11.31ZM15,16.65a0.43,0.43 0,0 1,-0.43 0.43H9.5a0.43,0.43 0,0 1,-0.43 -0.43V12.66a0.43,0.43 0,0 1,0.43 -0.43H14.56a0.43,0.43 0,0 1,0.43 0.43Z"
+ />
+</vector> \ No newline at end of file
diff --git a/src/android/app/src/main/res/values/strings.xml b/src/android/app/src/main/res/values/strings.xml
index 7ff8929a36..6f0b06d596 100644
--- a/src/android/app/src/main/res/values/strings.xml
+++ b/src/android/app/src/main/res/values/strings.xml
@@ -145,6 +145,8 @@
<string name="keys_missing_help">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<!-- Applet launcher strings -->
+ <string name="qlaunch_applet">Qlaunch</string>
+ <string name="qlaunch_description">Launch applications from the system home screen</string>
<string name="applets">Applet launcher</string>
<string name="applets_description">Launch system applets using installed firmware</string>
<string name="applets_error_firmware">Firmware not installed</string>