mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2025-01-11 01:09:08 +01:00
Add Captain Toad build scripts
This commit is contained in:
parent
437a91aa02
commit
28416bd718
34
Source/CaptainToad/patches.txt
Normal file
34
Source/CaptainToad/patches.txt
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
$width = $argv[1];
|
||||
$height = $argv[2];
|
||||
|
||||
$aspect = $width / (float)$height;
|
||||
|
||||
if (round($aspect*100.0) == 178)
|
||||
exit(1);
|
||||
|
||||
$aspect = number_format((float)$aspect, 3, '.', '');
|
||||
?>
|
||||
[KinopioAspectUW]
|
||||
moduleMatches = 0x43781F76, 0xC64B0A12, 0xD80AD9B4
|
||||
#rodata constants
|
||||
0x100A0EE0 = .float <?=$aspect?>
|
||||
0x100BE2EC = .float <?=$aspect?>
|
||||
0x100D79B4 = .float <?=$aspect?>
|
||||
_aspectAddr = 0x100A0EE0
|
||||
|
||||
#Aspect Calculation
|
||||
0x02368158 = lis r31, _aspectAddr@ha
|
||||
0x0236815c = lfs f13, _aspectAddr@l(r31)
|
||||
|
||||
[KinopioAspectUWv16]
|
||||
moduleMatches = 0x9E0461E7, 0x1B377483, 0x0576A725
|
||||
#rodata constants
|
||||
0x0100A2D38 = .float <?=$aspect?>
|
||||
0x0100C0164 = .float <?=$aspect?>
|
||||
0x0100D982C = .float <?=$aspect?>
|
||||
_aspectAddr = 0x0100A2D38
|
||||
|
||||
#Aspect Calculation
|
||||
0x02373530 = lis r31, _aspectAddr@ha
|
||||
0x02373534 = lfs f13, _aspectAddr@l(r31)
|
114
Source/CaptainToad/rules.txt
Normal file
114
Source/CaptainToad/rules.txt
Normal file
@ -0,0 +1,114 @@
|
||||
<?php
|
||||
$fullWidth = $argv[1];
|
||||
$fullHeight = $argv[2];
|
||||
$halfWidth = $fullWidth / 2;
|
||||
$halfHeight = $fullHeight / 2;
|
||||
$quarterWidth = $fullWidth / 4;
|
||||
$quarterHeight = $fullHeight / 4;
|
||||
|
||||
$title = $fullWidth . "x" . $fullHeight;
|
||||
|
||||
$aspect = $fullWidth / (float)$fullHeight;
|
||||
if (round($aspect*10) == 23 || round($aspect*10) == 24)
|
||||
$title = $title . " (21:9)";
|
||||
|
||||
?>
|
||||
[Definition]
|
||||
titleIds = 0005000010180600,0005000010180700,0005000010180500
|
||||
name = "Captain Toad: Treasure Tracker - <?=$title?>"
|
||||
version = 2
|
||||
|
||||
[TextureRedefine] # tv
|
||||
width = 1280
|
||||
height = 720
|
||||
formatsExcluded = 0x008,0x41A,0x034,0x035 # exclude obvious textures
|
||||
overwriteWidth = <?=$fullWidth?>
|
||||
overwriteHeight = <?=$fullHeight?>
|
||||
|
||||
[TextureRedefine] # zoomed in
|
||||
width = 1128
|
||||
height = 720
|
||||
overwriteWidth = <?=$fullWidth?>
|
||||
overwriteHeight = <?=$fullHeight?>
|
||||
|
||||
[TextureRedefine] # zoom transition
|
||||
width = 1000
|
||||
height = 600
|
||||
overwriteWidth = <?=$fullWidth?>
|
||||
overwriteHeight = <?=$fullHeight?>
|
||||
|
||||
[TextureRedefine] # zoom transition 2
|
||||
width = 1000
|
||||
height = 720
|
||||
overwriteWidth = <?=$fullWidth?>
|
||||
overwriteHeight = <?=$fullHeight?>
|
||||
|
||||
[TextureRedefine] # half-res alpha
|
||||
width = 640
|
||||
height = 360
|
||||
formatsExcluded = 0x41A # exclude obvious textures
|
||||
overwriteWidth = <?=$halfWidth?>
|
||||
overwriteHeight = <?=$halfHeight?>
|
||||
|
||||
[TextureRedefine] # half-res (zoomed in)
|
||||
width = 564
|
||||
height = 360
|
||||
overwriteWidth = <?=$halfWidth?>
|
||||
overwriteHeight = <?=$halfHeight?>
|
||||
|
||||
[TextureRedefine] # half-res (zoom transition)
|
||||
width = 500
|
||||
height = 300
|
||||
overwriteWidth = <?=$halfWidth?>
|
||||
overwriteHeight = <?=$halfHeight?>
|
||||
|
||||
[TextureRedefine] # half-res (zoom transition 2)
|
||||
width = 500
|
||||
height = 360
|
||||
overwriteWidth = <?=$halfWidth?>
|
||||
overwriteHeight = <?=$halfHeight?>
|
||||
|
||||
[TextureRedefine] # quarter-res alpha
|
||||
width = 320
|
||||
height = 180
|
||||
formatsExcluded = 0x41A # exclude obvious textures
|
||||
overwriteWidth = <?=$quarterWidth?>
|
||||
overwriteHeight = <?=$quarterHeight?>
|
||||
|
||||
[TextureRedefine] # q-res (zoomed in)
|
||||
width = 282
|
||||
height = 180
|
||||
overwriteWidth = <?=$quarterWidth?>
|
||||
overwriteHeight = <?=$quarterHeight?>
|
||||
|
||||
[TextureRedefine] # q-res (zoom transition)
|
||||
width = 250
|
||||
height = 150
|
||||
overwriteWidth = <?=$quarterWidth?>
|
||||
overwriteHeight = <?=$quarterHeight?>
|
||||
|
||||
[TextureRedefine] # q-res (zoom transition 2)
|
||||
width = 250
|
||||
height = 180
|
||||
overwriteWidth = <?=$quarterWidth?>
|
||||
overwriteHeight = <?=$quarterHeight?>
|
||||
|
||||
[TextureRedefine] # gamepad
|
||||
width = 854
|
||||
height = 480
|
||||
#overwriteWidth = <?=$fullWidth?>
|
||||
#overwriteHeight = <?=$fullHeight?>
|
||||
|
||||
[TextureRedefine] # half-res (gamepad)
|
||||
width = 427
|
||||
height = 240
|
||||
formatsExcluded = 0x41A # exclude obvious textures
|
||||
overwriteWidth = <?=$halfWidth?>
|
||||
overwriteHeight = <?=$halfHeight?>
|
||||
|
||||
[TextureRedefine] # q-res (gamepad)
|
||||
width = 214
|
||||
height = 120
|
||||
formatsExcluded = 0x41A # exclude obvious textures
|
||||
overwriteWidth = <?=$quarterWidth?>
|
||||
overwriteHeight = <?=$quarterHeight?>
|
@ -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 <?=$aspect?>
|
||||
0x100BE2EC = .float <?=$aspect?>
|
||||
0x100D79B4 = .float <?=$aspect?>
|
||||
_aspectAddr = 0x100A0EE0
|
||||
|
||||
#Aspect Calculation
|
||||
0x02368158 = lis r31, _aspectAddr@ha
|
||||
0x0236815c = lfs f13, _aspectAddr@l(r31)
|
||||
|
||||
[KinopioAspectUWv16]
|
||||
moduleMatches = 0x9E0461E7, 0x1B377483, 0x0576A725
|
||||
#rodata constants
|
||||
0x0100A2D38 = .float <?=$aspect?>
|
||||
0x0100C0164 = .float <?=$aspect?>
|
||||
0x0100D982C = .float <?=$aspect?>
|
||||
_aspectAddr = 0x0100A2D38
|
||||
|
||||
#Aspect Calculation
|
||||
0x02373530 = lis r31, _aspectAddr@ha
|
||||
0x02373534 = lfs f13, _aspectAddr@l(r31)
|
||||
|
@ -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 - <?=$title?>"
|
||||
version = 2
|
||||
|
||||
@ -94,8 +94,21 @@ overwriteWidth = <?=$quarterWidth?>
|
||||
overwriteHeight = <?=$quarterHeight?>
|
||||
|
||||
[TextureRedefine] # gamepad
|
||||
|
||||
width = 854
|
||||
height = 480
|
||||
#overwriteWidth = <?=$fullWidth?>
|
||||
#overwriteHeight = <?=$fullHeight?>
|
||||
|
||||
[TextureRedefine] # half-res (gamepad)
|
||||
width = 427
|
||||
height = 240
|
||||
formatsExcluded = 0x41A # exclude obvious textures
|
||||
overwriteWidth = <?=$halfWidth?>
|
||||
overwriteHeight = <?=$halfHeight?>
|
||||
|
||||
[TextureRedefine] # q-res (gamepad)
|
||||
width = 214
|
||||
height = 120
|
||||
formatsExcluded = 0x41A # exclude obvious textures
|
||||
overwriteWidth = <?=$quarterWidth?>
|
||||
overwriteHeight = <?=$quarterHeight?>
|
||||
|
13
build.sh
13
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user