From 3264c1be4249e38db57d85f120cc16b8719de629 Mon Sep 17 00:00:00 2001 From: cathery Date: Sat, 2 Nov 2019 01:39:40 +0300 Subject: [PATCH] added exit lock for applet type app --- source/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index d2c0bf1..04e3ba9 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -13,8 +13,6 @@ // Allow to connect controllers through usbDs (directly to switch) // Make a config application companion to test controller input and edit various preferences (buttons, deadzones) - - extern "C" { // Adjust size as needed. @@ -83,12 +81,12 @@ extern "C" } } - int main(int argc, char *argv[]) { Result rc; #ifdef __APPLET__ + appletLockExit(); consoleInit(nullptr); #endif @@ -96,6 +94,8 @@ int main(int argc, char *argv[]) #ifdef __APPLET__ consoleExit(nullptr); + userAppExit(); + appletUnlockExit(); #endif return rc;