summaryrefslogtreecommitdiffstats
path: root/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt
index e2c5b6acd..07f1b4842 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt
@@ -252,7 +252,7 @@ object NativeLibrary {
external fun reloadKeys(): Boolean
- external fun initializeEmulation()
+ external fun initializeSystem()
external fun defaultCPUCore(): Int
@@ -506,6 +506,36 @@ object NativeLibrary {
external fun initializeEmptyUserDirectory()
/**
+ * Gets the launch path for a given applet. It is the caller's responsibility to also
+ * set the system's current applet ID before trying to launch the nca given by this function.
+ *
+ * @param id The applet entry ID
+ * @return The applet's launch path
+ */
+ external fun getAppletLaunchPath(id: Long): String
+
+ /**
+ * Sets the system's current applet ID before launching.
+ *
+ * @param appletId One of the ids in the Service::AM::Applets::AppletId enum
+ */
+ external fun setCurrentAppletId(appletId: Int)
+
+ /**
+ * Sets the cabinet mode for launching the cabinet applet.
+ *
+ * @param cabinetMode One of the modes that corresponds to the enum in Service::NFP::CabinetMode
+ */
+ external fun setCabinetMode(cabinetMode: Int)
+
+ /**
+ * Checks whether NAND contents are available and valid.
+ *
+ * @return 'true' if firmware is available
+ */
+ external fun isFirmwareAvailable(): Boolean
+
+ /**
* Button type for use in onTouchEvent
*/
object ButtonType {