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; +} +