mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
Have helloworld sample exit immediately using sysapp
This commit is contained in:
parent
69131af492
commit
a2af172872
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user