Have helloworld sample exit immediately using sysapp

This commit is contained in:
shinyquagsire23 2016-07-27 17:49:43 -07:00
parent 69131af492
commit a2af172872
2 changed files with 6 additions and 1 deletions

View File

@ -18,7 +18,7 @@ BUILD := build
SOURCE := src
INCLUDE := include
DATA := data
LIBS := -lcoreinit -lproc_ui
LIBS := -lcoreinit -lproc_ui -lsysapp
CFLAGS += -O2 -Wall -std=c11
CXXFLAGS += -O2 -Wall

View File

@ -3,6 +3,7 @@
#include <coreinit/thread.h>
#include <coreinit/foreground.h>
#include <proc_ui/procui.h>
#include <sysapp/launch.h>
bool isAppRunning = true;
@ -82,6 +83,10 @@ main(int argc, char **argv)
OSReport("Core 0 thread returned %d", resultCore0);
OSReport("Core 2 thread returned %d", resultCore2);
// Sends messages for ProcUI to release foreground, exit
// and launch into the system menu immediately.
SYSLaunchMenu();
while(AppRunning());
return 0;
}