Skip to content

Commit 7786f71

Browse files
committed
Wii U: update for Aroma
1 parent 208a328 commit 7786f71

File tree

6 files changed

+31
-22
lines changed

6 files changed

+31
-22
lines changed

.github/workflows/autobuild.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,12 @@ jobs:
115115
- name: Checkout
116116
uses: actions/checkout@v1
117117
- name: Compile
118-
run: |
119-
make wiiu -j$(nproc)
120-
mv icon/icon-wiiu.png icon.png
121-
mv icon/meta.xml meta.xml
118+
run: make wiiu -j$(nproc)
122119
- name: Upload
123120
uses: actions/upload-artifact@v2
124121
with:
125122
name: noods-wiiu
126-
path: |
127-
icon.png
128-
meta.xml
129-
noods.rpx
123+
path: noods.wuhb
130124

131125
build-vita:
132126
runs-on: ubuntu-latest

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
/noods.rpx
1717
/noods.velf
1818
/noods.vpk
19+
/noods.wuhb
1920
/noods.ini
2021
/param.sfo
2122
bios7.bin

Makefile.wiiu

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ ifeq ($(strip $(DEVKITPRO)),)
22
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro")
33
endif
44

5+
APP_NAME := NooDS
6+
APP_SHORTNAME := NooDS
7+
APP_AUTHOR := Hydr8gon
8+
APP_ICON := ../icon/icon-vita.png
9+
510
include $(DEVKITPRO)/wut/share/wut_rules
611

712
NAME := noods
@@ -39,11 +44,12 @@ build-shader:
3944
cd src/console/shaders; ./latte-assembler compile shader_wiiu.gsh --vsh shader_wiiu.vsh --psh shader_wiiu.psh
4045

4146
clean:
42-
rm -rf $(BUILD) $(NAME).rpx $(NAME).elf
47+
rm -rf $(BUILD) $(NAME).wuhb $(NAME).rpx $(NAME).elf
4348

4449
else
4550

46-
all: $(OUTPUT).rpx
51+
all: $(OUTPUT).wuhb
52+
$(OUTPUT).wuhb: $(OUTPUT).rpx
4753
$(OUTPUT).rpx: $(OUTPUT).elf
4854
$(OUTPUT).elf: $(OFILES)
4955

icon/icon-wiiu.png

-18.3 KB
Binary file not shown.

icon/meta.xml

-8
This file was deleted.

src/console/main_wiiu.cpp

+20-4
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@
1919

2020
#ifdef __WIIU__
2121

22+
#include <coreinit/foreground.h>
2223
#include <coreinit/memdefaultheap.h>
2324
#include <gx2/display.h>
2425
#include <gx2/draw.h>
2526
#include <gx2/mem.h>
2627
#include <gx2/registers.h>
2728
#include <gx2r/draw.h>
29+
#include <proc_ui/procui.h>
30+
#include <sysapp/launch.h>
2831
#include <vpad/input.h>
29-
#include <whb/proc.h>
3032
#include <whb/sdcard.h>
3133
#include <whb/gfx.h>
3234
#include <SDL2/SDL.h>
@@ -282,7 +284,7 @@ void outputAudio(void *data, uint8_t *buffer, int length)
282284
int main()
283285
{
284286
// Initialize various things
285-
WHBProcInit();
287+
ProcUIInit(OSSavesDone_ReadyToRelease);
286288
WHBGfxInit();
287289
VPADInit();
288290
WHBMountSdCard();
@@ -382,8 +384,22 @@ int main()
382384

383385
// Run the emulator until it exits
384386
ConsoleUI::mainLoop(nullptr, &gpLayout);
385-
WHBProcShutdown();
386-
return 0;
387+
SYSLaunchMenu();
388+
389+
// Respond to system messages appropriately to allow exiting
390+
while (true)
391+
{
392+
switch (ProcUIProcessMessages(true))
393+
{
394+
case PROCUI_STATUS_EXITING:
395+
ProcUIShutdown();
396+
return 0;
397+
398+
case PROCUI_STATUS_RELEASE_FOREGROUND:
399+
ProcUIDrawDoneRelease();
400+
break;
401+
}
402+
}
387403
}
388404

389405
#endif // __WIIU__

0 commit comments

Comments
 (0)