From 1dc04bd0bda03d623a630ea1dc929a5eb33f9b46 Mon Sep 17 00:00:00 2001 From: jaby Date: Sun, 4 Feb 2024 20:35:15 -0500 Subject: [PATCH] Enable PAL and NTSC build --- examples/PoolBox/PoolBox.code-workspace | 15 +++++++++++---- examples/PoolBox/application/Makefile | 2 -- examples/PoolBox/iso/Config.xml | 12 ++++++------ mkfile/ISOMakefile.mk | 15 ++++++++++----- mkfile/Makefile | 2 +- src/Library/Library.code-workspace | 11 +++++++++-- src/Library/Makefile | 1 - .../#{ProjectName}.code-workspace | 19 ++++++++++++++++--- template/JabyEngine-PSX_Game/Makefile | 2 +- .../JabyEngine-PSX_Game/application/Makefile | 7 +++---- template/JabyEngine-PSX_Game/assets/Makefile | 4 ++-- template/JabyEngine-PSX_Game/iso/Config.xml | 2 +- template/JabyEngine-PSX_Game/iso/Makefile | 2 ++ 13 files changed, 62 insertions(+), 32 deletions(-) create mode 100644 template/JabyEngine-PSX_Game/iso/Makefile diff --git a/examples/PoolBox/PoolBox.code-workspace b/examples/PoolBox/PoolBox.code-workspace index 849b20e6..fba4bb64 100644 --- a/examples/PoolBox/PoolBox.code-workspace +++ b/examples/PoolBox/PoolBox.code-workspace @@ -11,11 +11,11 @@ { "label": "build", "type": "shell", - "windows": { // v re-export for WSL v re-export for WSL - "command": "wsl make ${input:project}_${input:target} BUILD_PROFILE=${input:build profile} PSX_LICENSE_PATH=$(wslpath ${env:PSX_LICENSE_PATH}) JABY_ENGINE_DIR=$(wslpath ${env:JABY_ENGINE_PATH})", + "windows": { // v re-export for WSL v re-export for WSL + "command": "wsl make ${input:project}_${input:target} BUILD_PROFILE=${input:build profile} TV_FORMAT=${input:tv format} PSX_LICENSE_PATH=$(wslpath ${env:PSX_LICENSE_PATH}) JABY_ENGINE_DIR=$(wslpath ${env:JABY_ENGINE_PATH})", }, "linux": { - "command": "make ${input:project}_${input:target} BUILD_PROFILE=${input:build profile}", + "command": "make ${input:project}_${input:target} BUILD_PROFILE=${input:build profile} TV_FORMAT=${input:tv format}", }, "group": { "kind": "build", @@ -30,7 +30,7 @@ { "label": "read memory map", "type": "shell", - "command": "psxreadmap.exe ${input:output memory map} application/bin/PSX-${input:build profile}/PoolBox.elf", + "command": "psxreadmap.exe ${input:output memory map} application/bin/${input:tv format}/PSX-${input:build profile}/PoolBox.elf", "problemMatcher": [], "options": { "env": { @@ -61,6 +61,13 @@ "default": "all", "description": "the build target" }, + { + "id": "tv format", + "type": "pickString", + "options": ["PAL", "NTSC"], + "default": "PAL", + "description": "TV format to use" + }, { "id": "output memory map", "type": "pickString", diff --git a/examples/PoolBox/application/Makefile b/examples/PoolBox/application/Makefile index 269b0507..2b94dbf6 100644 --- a/examples/PoolBox/application/Makefile +++ b/examples/PoolBox/application/Makefile @@ -1,5 +1,3 @@ -BUILD_DIR = bin - OVERLAY_CONFIG = Overlays.json include $(JABY_ENGINE_DIR)/mkfile/Wildcard.mk diff --git a/examples/PoolBox/iso/Config.xml b/examples/PoolBox/iso/Config.xml index a2f4907e..f34eb2b7 100644 --- a/examples/PoolBox/iso/Config.xml +++ b/examples/PoolBox/iso/Config.xml @@ -5,12 +5,12 @@ System.cnf -
../application/bin/PSX-release/PoolBox.psexe
- ../application/bin/PSX-release/Overlay.controller_tests - ../application/bin/PSX-release/Overlay.gpu_tests - ../application/bin/PSX-release/Overlay.gte_tests - ../application/bin/PSX-release/Overlay.font_cycler - ../application/bin/PSX-release/Overlay.screen_center +
../application/bin/%TV_FORMAT%/PSX-release/PoolBox.psexe
+ ../application/bin/%TV_FORMAT%/PSX-release/Overlay.controller_tests + ../application/bin/%TV_FORMAT%/PSX-release/Overlay.gpu_tests + ../application/bin/%TV_FORMAT%/PSX-release/Overlay.gte_tests + ../application/bin/%TV_FORMAT%/PSX-release/Overlay.font_cycler + ../application/bin/%TV_FORMAT%/PSX-release/Overlay.screen_center