From ebf81ab6ff8ac78b8083dc3b746423698ea6ac41 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Thu, 7 Dec 2017 18:54:07 -0500 Subject: [PATCH] Imported *MainLoop() from libctru. --- nx/include/switch/services/applet.h | 6 ++++++ nx/source/services/applet.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/nx/include/switch/services/applet.h b/nx/include/switch/services/applet.h index a38f1c75..b467d03f 100644 --- a/nx/include/switch/services/applet.h +++ b/nx/include/switch/services/applet.h @@ -14,3 +14,9 @@ void appletExit(void); Result appletGetAppletResourceUserId(u64 *out); Result appletCreateManagedDisplayLayer(u64 *out); + +/** + * @brief Processes the current applet status. Generally used within a main loop. + * @return Whether the application should continue running. + */ +bool appletMainLoop(void); diff --git a/nx/source/services/applet.c b/nx/source/services/applet.c index 3c65bf97..bc10c614 100644 --- a/nx/source/services/applet.c +++ b/nx/source/services/applet.c @@ -602,3 +602,7 @@ Result appletCreateManagedDisplayLayer(u64 *out) { return rc; } +bool appletMainLoop(void) { + return true; +} +