From 28416bd718852ef8e9328ebb83c67ac00b9f79ae Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 17 Oct 2017 19:16:46 -0700 Subject: [PATCH] Add Captain Toad build scripts --- Source/CaptainToad/patches.txt | 34 ++++++++ Source/CaptainToad/rules.txt | 114 +++++++++++++++++++++++++++ Source/SuperMario3DWorld/patches.txt | 24 ------ Source/SuperMario3DWorld/rules.txt | 17 +++- build.sh | 13 +++ 5 files changed, 176 insertions(+), 26 deletions(-) create mode 100644 Source/CaptainToad/patches.txt create mode 100644 Source/CaptainToad/rules.txt diff --git a/Source/CaptainToad/patches.txt b/Source/CaptainToad/patches.txt new file mode 100644 index 00000000..d13533d6 --- /dev/null +++ b/Source/CaptainToad/patches.txt @@ -0,0 +1,34 @@ + +[KinopioAspectUW] +moduleMatches = 0x43781F76, 0xC64B0A12, 0xD80AD9B4 +#rodata constants +0x100A0EE0 = .float +0x100BE2EC = .float +0x100D79B4 = .float +_aspectAddr = 0x100A0EE0 + +#Aspect Calculation +0x02368158 = lis r31, _aspectAddr@ha +0x0236815c = lfs f13, _aspectAddr@l(r31) + +[KinopioAspectUWv16] +moduleMatches = 0x9E0461E7, 0x1B377483, 0x0576A725 +#rodata constants +0x0100A2D38 = .float +0x0100C0164 = .float +0x0100D982C = .float +_aspectAddr = 0x0100A2D38 + +#Aspect Calculation +0x02373530 = lis r31, _aspectAddr@ha +0x02373534 = lfs f13, _aspectAddr@l(r31) diff --git a/Source/CaptainToad/rules.txt b/Source/CaptainToad/rules.txt new file mode 100644 index 00000000..74e5e7e5 --- /dev/null +++ b/Source/CaptainToad/rules.txt @@ -0,0 +1,114 @@ + +[Definition] +titleIds = 0005000010180600,0005000010180700,0005000010180500 +name = "Captain Toad: Treasure Tracker - " +version = 2 + +[TextureRedefine] # tv +width = 1280 +height = 720 +formatsExcluded = 0x008,0x41A,0x034,0x035 # exclude obvious textures +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # zoomed in +width = 1128 +height = 720 +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # zoom transition +width = 1000 +height = 600 +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # zoom transition 2 +width = 1000 +height = 720 +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # half-res alpha +width = 640 +height = 360 +formatsExcluded = 0x41A # exclude obvious textures +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # half-res (zoomed in) +width = 564 +height = 360 +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # half-res (zoom transition) +width = 500 +height = 300 +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # half-res (zoom transition 2) +width = 500 +height = 360 +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # quarter-res alpha +width = 320 +height = 180 +formatsExcluded = 0x41A # exclude obvious textures +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # q-res (zoomed in) +width = 282 +height = 180 +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # q-res (zoom transition) +width = 250 +height = 150 +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # q-res (zoom transition 2) +width = 250 +height = 180 +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # gamepad +width = 854 +height = 480 +#overwriteWidth = +#overwriteHeight = + +[TextureRedefine] # half-res (gamepad) +width = 427 +height = 240 +formatsExcluded = 0x41A # exclude obvious textures +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # q-res (gamepad) +width = 214 +height = 120 +formatsExcluded = 0x41A # exclude obvious textures +overwriteWidth = +overwriteHeight = diff --git a/Source/SuperMario3DWorld/patches.txt b/Source/SuperMario3DWorld/patches.txt index ea4468ce..0cfa368f 100644 --- a/Source/SuperMario3DWorld/patches.txt +++ b/Source/SuperMario3DWorld/patches.txt @@ -19,27 +19,3 @@ _aspectAddr = 0x10363ED4 # Aspect calculation 0x0241D9B4 = lis r8, _aspectAddr@ha 0x0241D9B8 = lfs f0, _aspectAddr@l(r8) - -[KinopioAspectUW] -moduleMatches = 0x43781F76, 0xC64B0A12, 0xD80AD9B4 -#rodata constants -0x100A0EE0 = .float -0x100BE2EC = .float -0x100D79B4 = .float -_aspectAddr = 0x100A0EE0 - -#Aspect Calculation -0x02368158 = lis r31, _aspectAddr@ha -0x0236815c = lfs f13, _aspectAddr@l(r31) - -[KinopioAspectUWv16] -moduleMatches = 0x9E0461E7, 0x1B377483, 0x0576A725 -#rodata constants -0x0100A2D38 = .float -0x0100C0164 = .float -0x0100D982C = .float -_aspectAddr = 0x0100A2D38 - -#Aspect Calculation -0x02373530 = lis r31, _aspectAddr@ha -0x02373534 = lfs f13, _aspectAddr@l(r31) diff --git a/Source/SuperMario3DWorld/rules.txt b/Source/SuperMario3DWorld/rules.txt index 65a0ccf1..8e8907a2 100644 --- a/Source/SuperMario3DWorld/rules.txt +++ b/Source/SuperMario3DWorld/rules.txt @@ -14,7 +14,7 @@ if (round($aspect*10) == 23 || round($aspect*10) == 24) ?> [Definition] -titleIds = 0005000010145d00,0005000010145c00,0005000010106100 +titleIds = 0005000010145D00,0005000010145C00,0005000010106100 name = "Super Mario 3D World - " version = 2 @@ -94,8 +94,21 @@ overwriteWidth = overwriteHeight = [TextureRedefine] # gamepad - width = 854 height = 480 #overwriteWidth = #overwriteHeight = + +[TextureRedefine] # half-res (gamepad) +width = 427 +height = 240 +formatsExcluded = 0x41A # exclude obvious textures +overwriteWidth = +overwriteHeight = + +[TextureRedefine] # q-res (gamepad) +width = 214 +height = 120 +formatsExcluded = 0x41A # exclude obvious textures +overwriteWidth = +overwriteHeight = diff --git a/build.sh b/build.sh index 03edad03..5ea6befd 100644 --- a/build.sh +++ b/build.sh @@ -69,6 +69,19 @@ build_dir "Source/BreathOfTheWild" "Quality/BreathOfTheWild_1800p" 3200 1800 build_dir "Source/BreathOfTheWild" "Quality/BreathOfTheWild_2160p" 3840 2160 build_dir "Source/BreathOfTheWild" "Quality/BreathOfTheWild_2160pUW" 5120 2160 build_dir "Source/BreathOfTheWild" "Quality/BreathOfTheWild_900p" 1600 900 +build_dir "Source/CaptainToad" "Enthusiast/CaptainToad_2880p" 5120 2880 +build_dir "Source/CaptainToad" "Enthusiast/CaptainToad_4320p" 7680 4320 +build_dir "Source/CaptainToad" "Enthusiast/CaptainToad_5760p" 10240 5760 +build_dir "Source/CaptainToad" "Performance/CaptainToad_360p" 640 360 +build_dir "Source/CaptainToad" "Performance/CaptainToad_540p" 960 540 +build_dir "Source/CaptainToad" "Quality/CaptainToad_1080p" 1920 1080 +build_dir "Source/CaptainToad" "Quality/CaptainToad_1080pUW" 2560 1080 +build_dir "Source/CaptainToad" "Quality/CaptainToad_1440p" 2560 1440 +build_dir "Source/CaptainToad" "Quality/CaptainToad_1440pUW" 3440 1440 +build_dir "Source/CaptainToad" "Quality/CaptainToad_1800p" 3200 1800 +build_dir "Source/CaptainToad" "Quality/CaptainToad_2160p" 3840 2160 +build_dir "Source/CaptainToad" "Quality/CaptainToad_2160pUW" 5120 2160 +build_dir "Source/CaptainToad" "Quality/CaptainToad_900p" 1600 900 build_dir "Source/Splatoon" "Enthusiast/Splatoon_2880p" 5120 2880 build_dir "Source/Splatoon" "Enthusiast/Splatoon_4320p" 7680 4320 build_dir "Source/Splatoon" "Enthusiast/Splatoon_5760p" 10240 5760