mirror of
https://github.com/cathery/sys-con.git
synced 2025-01-26 09:35:19 +00:00
added exit lock for applet type app
This commit is contained in:
parent
329876157a
commit
3264c1be42
@ -13,8 +13,6 @@
|
|||||||
// Allow to connect controllers through usbDs (directly to switch)
|
// Allow to connect controllers through usbDs (directly to switch)
|
||||||
// Make a config application companion to test controller input and edit various preferences (buttons, deadzones)
|
// Make a config application companion to test controller input and edit various preferences (buttons, deadzones)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
// Adjust size as needed.
|
// Adjust size as needed.
|
||||||
@ -83,12 +81,12 @@ extern "C"
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
Result rc;
|
Result rc;
|
||||||
|
|
||||||
#ifdef __APPLET__
|
#ifdef __APPLET__
|
||||||
|
appletLockExit();
|
||||||
consoleInit(nullptr);
|
consoleInit(nullptr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -96,6 +94,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#ifdef __APPLET__
|
#ifdef __APPLET__
|
||||||
consoleExit(nullptr);
|
consoleExit(nullptr);
|
||||||
|
userAppExit();
|
||||||
|
appletUnlockExit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user