From 80aae9c2cbf588d4d173c77bc871f148fcc5fa7f Mon Sep 17 00:00:00 2001 From: Boreal Date: Mon, 27 Apr 2026 08:53:43 -0700 Subject: [PATCH 1/4] move 3ds resources and romfs into `resources/3ds` --- Makefile | 4 ++-- resources/{ => 3ds/meta}/AppInfo | 0 resources/{ => 3ds/meta}/audio.mp3 | Bin resources/{ => 3ds/meta}/audio.wav | Bin resources/{ => 3ds/meta}/banner.png | Bin resources/{ => 3ds/meta}/icon.png | Bin resources/{ => 3ds/meta}/template.rsf | 0 {romfs => resources/3ds/romfs}/gfx/border.png | Bin {romfs => resources/3ds/romfs}/gfx/borders.t3s | 0 9 files changed, 2 insertions(+), 2 deletions(-) rename resources/{ => 3ds/meta}/AppInfo (100%) rename resources/{ => 3ds/meta}/audio.mp3 (100%) rename resources/{ => 3ds/meta}/audio.wav (100%) rename resources/{ => 3ds/meta}/banner.png (100%) rename resources/{ => 3ds/meta}/icon.png (100%) rename resources/{ => 3ds/meta}/template.rsf (100%) rename {romfs => resources/3ds/romfs}/gfx/border.png (100%) rename {romfs => resources/3ds/romfs}/gfx/borders.t3s (100%) diff --git a/Makefile b/Makefile index 81f23a29..77846a27 100644 --- a/Makefile +++ b/Makefile @@ -41,8 +41,8 @@ DATA := data INCLUDES := src src/n3ds GRAPHICS := gfx OUTPUT := output -RESOURCES := resources -ROMFS := romfs +RESOURCES := resources/3ds/meta +ROMFS := resources/3ds/romfs GFXBUILD := $(ROMFS)/gfx #--------------------------------------------------------------------------------- # Resource Setup diff --git a/resources/AppInfo b/resources/3ds/meta/AppInfo similarity index 100% rename from resources/AppInfo rename to resources/3ds/meta/AppInfo diff --git a/resources/audio.mp3 b/resources/3ds/meta/audio.mp3 similarity index 100% rename from resources/audio.mp3 rename to resources/3ds/meta/audio.mp3 diff --git a/resources/audio.wav b/resources/3ds/meta/audio.wav similarity index 100% rename from resources/audio.wav rename to resources/3ds/meta/audio.wav diff --git a/resources/banner.png b/resources/3ds/meta/banner.png similarity index 100% rename from resources/banner.png rename to resources/3ds/meta/banner.png diff --git a/resources/icon.png b/resources/3ds/meta/icon.png similarity index 100% rename from resources/icon.png rename to resources/3ds/meta/icon.png diff --git a/resources/template.rsf b/resources/3ds/meta/template.rsf similarity index 100% rename from resources/template.rsf rename to resources/3ds/meta/template.rsf diff --git a/romfs/gfx/border.png b/resources/3ds/romfs/gfx/border.png similarity index 100% rename from romfs/gfx/border.png rename to resources/3ds/romfs/gfx/border.png diff --git a/romfs/gfx/borders.t3s b/resources/3ds/romfs/gfx/borders.t3s similarity index 100% rename from romfs/gfx/borders.t3s rename to resources/3ds/romfs/gfx/borders.t3s From 4cd63cb6fd3c29c06752b42e5c8ec2ce387a6d74 Mon Sep 17 00:00:00 2001 From: Boreal Date: Mon, 27 Apr 2026 09:36:00 -0700 Subject: [PATCH 2/4] Move wii u images into `resources/wiiu/meta/` --- Makefile.wiiu | 9 +++++---- resources/wiiu/{ => meta}/drc.png | Bin resources/wiiu/{ => meta}/icon.png | Bin resources/wiiu/{ => meta}/tv.png | Bin 4 files changed, 5 insertions(+), 4 deletions(-) rename resources/wiiu/{ => meta}/drc.png (100%) rename resources/wiiu/{ => meta}/icon.png (100%) rename resources/wiiu/{ => meta}/tv.png (100%) diff --git a/Makefile.wiiu b/Makefile.wiiu index 69e8948a..4d6df036 100644 --- a/Makefile.wiiu +++ b/Makefile.wiiu @@ -17,15 +17,16 @@ TARGET := undertale BUILD := build-wiiu SOURCES := src src/wiiu INCLUDES := src src/wiiu +RESOURCES := resources/wiiu OUTPUT := output-wiiu CONTENT_DIR := $(TOPDIR)/$(OUTPUT)/content export APP_NAME := Undertale export APP_SHORTNAME := Undertale export APP_AUTHOR := Grayforz2468 -export APP_ICON := $(TOPDIR)/resources/wiiu/icon.png -export APP_TV_IMAGE := $(TOPDIR)/resources/wiiu/tv.png -export APP_DRC_IMAGE := $(TOPDIR)/resources/wiiu/drc.png +export APP_ICON := $(TOPDIR)/$(RESOURCES)/meta/icon.png +export APP_TV_IMAGE := $(TOPDIR)/$(RESOURCES)/meta/tv.png +export APP_DRC_IMAGE := $(TOPDIR)/$(RESOURCES)/meta/drc.png export APP_CONTENT := $(CONTENT_DIR) ifeq ($(OS),Windows_NT) @@ -34,7 +35,7 @@ else CAFEGLSL ?= $(TOPDIR)/tools/CafeGLSL/glslcompiler.elf endif -WIIU_SHADER_DIR := $(TOPDIR)/resources/wiiu/shaders +WIIU_SHADER_DIR := $(TOPDIR)/$(RESOURCES)/shaders WIIU_SHADERS := $(WIIU_SHADER_DIR)/textured_quad.gsh $(WIIU_SHADER_DIR)/pos_col.gsh WIIU_SHADER_HDR := $(TOPDIR)/src/wiiu/textured_quad_gsh.h $(TOPDIR)/src/wiiu/pos_col_gsh.h WIIU_SHADER_PREBUILT := $(WIIU_SHADERS) $(WIIU_SHADER_HDR) diff --git a/resources/wiiu/drc.png b/resources/wiiu/meta/drc.png similarity index 100% rename from resources/wiiu/drc.png rename to resources/wiiu/meta/drc.png diff --git a/resources/wiiu/icon.png b/resources/wiiu/meta/icon.png similarity index 100% rename from resources/wiiu/icon.png rename to resources/wiiu/meta/icon.png diff --git a/resources/wiiu/tv.png b/resources/wiiu/meta/tv.png similarity index 100% rename from resources/wiiu/tv.png rename to resources/wiiu/meta/tv.png From 24c704b163c9954f151f42e3692b6759b5b23f39 Mon Sep 17 00:00:00 2001 From: Boreal Date: Mon, 27 Apr 2026 10:17:43 -0700 Subject: [PATCH 3/4] Rename output-{platform} to output/{platform} --- .gitignore | 3 +-- Makefile | 4 ++-- Makefile.wiiu | 4 ++-- build-wiiu.sh | 2 +- make wuhb windows.bat | 2 +- make-cia-n3ds.sh | 2 +- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 4f578504..6a02a5ca 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,6 @@ build-n3ds/ build-wiiu/ -output-wiiu/ -output-3ds/ +output/ .vscode/ \ No newline at end of file diff --git a/Makefile b/Makefile index 77846a27..2628130a 100644 --- a/Makefile +++ b/Makefile @@ -35,12 +35,12 @@ include $(DEVKITARM)/3ds_rules #--------------------------------------------------------------------------------- TARGET := $(notdir $(CURDIR)) PROFILE ?= 0 -BUILD := build-n3ds$(if $(filter 0,$(PROFILE)),,-profile) +BUILD := build/n3ds$(if $(filter 0,$(PROFILE)),,-profile) SOURCES := src src/n3ds DATA := data INCLUDES := src src/n3ds GRAPHICS := gfx -OUTPUT := output +OUTPUT := output/3ds RESOURCES := resources/3ds/meta ROMFS := resources/3ds/romfs GFXBUILD := $(ROMFS)/gfx diff --git a/Makefile.wiiu b/Makefile.wiiu index 4d6df036..3d3fdd0a 100644 --- a/Makefile.wiiu +++ b/Makefile.wiiu @@ -14,11 +14,11 @@ TOPDIR ?= $(CURDIR) include $(DEVKITPRO)/wut/share/wut_rules TARGET := undertale -BUILD := build-wiiu SOURCES := src src/wiiu INCLUDES := src src/wiiu RESOURCES := resources/wiiu -OUTPUT := output-wiiu +OUTPUT := output/wiiu +BUILD := build-wiiu CONTENT_DIR := $(TOPDIR)/$(OUTPUT)/content export APP_NAME := Undertale diff --git a/build-wiiu.sh b/build-wiiu.sh index 8bb0f30d..74bc80c5 100644 --- a/build-wiiu.sh +++ b/build-wiiu.sh @@ -12,7 +12,7 @@ VERSION="1.0.0" SOURCE_DIR="./source" BUILD_DIR="./build" -OUTPUT_DIR="./output-wiiu" +OUTPUT_DIR="./output/wiiu" ICON="./resources/wiiu/icon.png" # 128x128 PNG TV_IMAGE="./resources/wiiu/tv.png" # 1280x720 PNG (TV banner) diff --git a/make wuhb windows.bat b/make wuhb windows.bat index 1985e464..cfe0c0f3 100644 --- a/make wuhb windows.bat +++ b/make wuhb windows.bat @@ -10,7 +10,7 @@ set VERSION=1.0.0 set SOURCE_DIR=.\source set BUILD_DIR=.\build -set OUTPUT_DIR=.\output-wiiu +set OUTPUT_DIR=.\output/wiiu set ICON=.\resources\wiiu\icon.png set TV_IMAGE=.\resources\wiiu\tv.png diff --git a/make-cia-n3ds.sh b/make-cia-n3ds.sh index 62ab7265..f2fdd40e 100755 --- a/make-cia-n3ds.sh +++ b/make-cia-n3ds.sh @@ -4,7 +4,7 @@ export DEVKITARM=$DEVKITPRO/devkitARM MAKEROM="$DEVKITPRO/tools/bin/makerom" # Basic makerom params (avoid using RSF). Override values as needed. -OUT_DIR=./build-n3ds +OUT_DIR=./build/n3ds ELF="$OUT_DIR/cinnamon.elf" OUT_CIA="$OUT_DIR/cinnamon.cia" From bbe7f7e95ad2c19a8e8c1260ddb86a7b34913c87 Mon Sep 17 00:00:00 2001 From: Boreal Date: Mon, 27 Apr 2026 11:27:14 -0700 Subject: [PATCH 4/4] Add comment explaining why I cannot rename build-wiiu --- Makefile.wiiu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.wiiu b/Makefile.wiiu index 3d3fdd0a..cb7308c2 100644 --- a/Makefile.wiiu +++ b/Makefile.wiiu @@ -18,7 +18,10 @@ SOURCES := src src/wiiu INCLUDES := src src/wiiu RESOURCES := resources/wiiu OUTPUT := output/wiiu + +# I want to rename this to build/wiiu but I can't because when I do it skips straight to linking and since nothing compiled, it dies. BUILD := build-wiiu + CONTENT_DIR := $(TOPDIR)/$(OUTPUT)/content export APP_NAME := Undertale