Merge pull request #24 from shinyquagsire23/helloworld2menu

Have helloworld sample exit immediately using sysapp
This commit is contained in:
James 2016-07-28 01:53:42 +01:00 committed by GitHub
commit 9398b20936
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;
}