From 3f178ae15ef039266fade3970d042b1463dc20a3 Mon Sep 17 00:00:00 2001 From: Sharpy66 Date: Sun, 17 Mar 2024 05:55:39 +0000 Subject: [PATCH] Android: Add ability to run Qlaunch --- .../suyu/suyu_emu/fragments/AppletLauncherFragment.kt | 6 ++++++ .../src/main/java/org/suyu/suyu_emu/model/Applet.kt | 2 +- src/android/app/src/main/res/drawable/ic_home.xml | 10 ++++++++++ src/android/app/src/main/res/values/strings.xml | 2 ++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/android/app/src/main/res/drawable/ic_home.xml diff --git a/src/android/app/src/main/java/org/suyu/suyu_emu/fragments/AppletLauncherFragment.kt b/src/android/app/src/main/java/org/suyu/suyu_emu/fragments/AppletLauncherFragment.kt index f60654ae9c..573abc8a73 100644 --- a/src/android/app/src/main/java/org/suyu/suyu_emu/fragments/AppletLauncherFragment.kt +++ b/src/android/app/src/main/java/org/suyu/suyu_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/suyu/suyu_emu/model/Applet.kt b/src/android/app/src/main/java/org/suyu/suyu_emu/model/Applet.kt index 43b72a6ba2..3b3b33643b 100644 --- a/src/android/app/src/main/java/org/suyu/suyu_emu/model/Applet.kt +++ b/src/android/app/src/main/java/org/suyu/suyu_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 @@ + + + \ 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 90d48dcee7..a2487f4f11 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 @@ https://suyu-emu.org/help/quickstart/#dumping-decryption-keys + Qlaunch + Launch applications from the system home screen Applet launcher Launch system applets using installed firmware Firmware not installed