mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-22 10:41:12 +01:00
Merge pull request #24 from shinyquagsire23/helloworld2menu
Have helloworld sample exit immediately using sysapp
This commit is contained in:
commit
9398b20936
@ -18,7 +18,7 @@ BUILD := build
|
|||||||
SOURCE := src
|
SOURCE := src
|
||||||
INCLUDE := include
|
INCLUDE := include
|
||||||
DATA := data
|
DATA := data
|
||||||
LIBS := -lcoreinit -lproc_ui
|
LIBS := -lcoreinit -lproc_ui -lsysapp
|
||||||
|
|
||||||
CFLAGS += -O2 -Wall -std=c11
|
CFLAGS += -O2 -Wall -std=c11
|
||||||
CXXFLAGS += -O2 -Wall
|
CXXFLAGS += -O2 -Wall
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#include <coreinit/thread.h>
|
#include <coreinit/thread.h>
|
||||||
#include <coreinit/foreground.h>
|
#include <coreinit/foreground.h>
|
||||||
#include <proc_ui/procui.h>
|
#include <proc_ui/procui.h>
|
||||||
|
#include <sysapp/launch.h>
|
||||||
|
|
||||||
bool isAppRunning = true;
|
bool isAppRunning = true;
|
||||||
|
|
||||||
@ -82,6 +83,10 @@ main(int argc, char **argv)
|
|||||||
OSReport("Core 0 thread returned %d", resultCore0);
|
OSReport("Core 0 thread returned %d", resultCore0);
|
||||||
OSReport("Core 2 thread returned %d", resultCore2);
|
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());
|
while(AppRunning());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user