Add Tropical Freeze to build script

This commit is contained in:
Michael 2017-10-18 21:00:09 -07:00
parent 364ed565da
commit ae58c5dccc
17 changed files with 128 additions and 240 deletions

View File

@ -1,18 +0,0 @@
[Definition]
titleIds = 0005000010137F00,0005000010138300,0005000010144800
name = "Donkey Kong Country: Tropical Freeze - 640x360"
version = 2
[TextureRedefine] # tv
width = 1280
height = 720
tileModesExcluded = 0x001
formatsExcluded = 0x031 # exclude the intro background texture
overwriteWidth = 640
overwriteHeight = 360
[TextureRedefine] # gamepad
width = 854
height = 480
overwriteWidth = 427
overwriteHeight = 240

View File

@ -1,18 +0,0 @@
[Definition]
titleIds = 0005000010137F00,0005000010138300,0005000010144800
name = "Donkey Kong Country: Tropical Freeze - 960x540"
version = 2
[TextureRedefine] # tv
width = 1280
height = 720
tileModesExcluded = 0x001
formatsExcluded = 0x031 # exclude the intro background texture
overwriteWidth = 960
overwriteHeight = 540
[TextureRedefine] # gamepad
width = 854
height = 480
overwriteWidth = 427
overwriteHeight = 240

View File

@ -1,19 +0,0 @@
[Definition]
titleIds = 0005000010137F00,0005000010138300,0005000010144800
name = "Donkey Kong Country: Tropical Freeze - 1920x1080"
version = 2
[TextureRedefine] # tv
width = 1280
height = 720
tileModesExcluded = 0x001
formatsExcluded = 0x031 # exclude the intro background texture
overwriteWidth = 1920
overwriteHeight = 1080
[TextureRedefine] # gamepad
width = 854
height = 480
#overwriteWidth = 1920
#overwriteHeight = 1080

View File

@ -1,9 +0,0 @@
[TropicalFreeze2]
moduleMatches = 0x4FF15DD2
0x10018498 = .float 2.370
0x10094758 = .float 2.370
[TropicalFreeze16]
moduleMatches = 0xA37C99E1
0x100184A8 = .float 2.370
0x100946F8 = .float 2.370

View File

@ -1,12 +0,0 @@
[Definition]
titleIds = 0005000010137F00,0005000010138300,0005000010144800
name = "Donkey Kong Country: Tropical Freeze - 2560x1080 (21:9)" #
version = 2
[TextureRedefine] # game rendering resolution
width = 1280
height = 720
tileModesExcluded = 0x001
formatsExcluded = 0x41A # exclude the intro background texture
overwriteWidth = 2560
overwriteHeight = 1080

View File

@ -1,19 +0,0 @@
[Definition]
titleIds = 0005000010137F00,0005000010138300,0005000010144800
name = "Donkey Kong Country: Tropical Freeze - 2560x1440"
version = 2
[TextureRedefine] # tv
width = 1280
height = 720
tileModesExcluded = 0x001
formatsExcluded = 0x031 # exclude the intro background texture
overwriteWidth = 2560
overwriteHeight = 1440
[TextureRedefine] # gamepad
width = 854
height = 480
#overwriteWidth = 1920
#overwriteHeight = 1080

View File

@ -1,19 +0,0 @@
[Definition]
titleIds = 0005000010137F00,0005000010138300,0005000010144800
name = "Donkey Kong Country: Tropical Freeze - 3200x1800"
version = 2
[TextureRedefine] # tv
width = 1280
height = 720
tileModesExcluded = 0x001
formatsExcluded = 0x031 # exclude the intro background texture
overwriteWidth = 3200
overwriteHeight = 1800
[TextureRedefine] # gamepad
width = 854
height = 480
#overwriteWidth = 1920
#overwriteHeight = 1080

View File

@ -1,19 +0,0 @@
[Definition]
titleIds = 0005000010137F00,0005000010138300,0005000010144800
name = "Donkey Kong Country: Tropical Freeze - 3840x2160"
version = 2
[TextureRedefine] # tv
width = 1280
height = 720
tileModesExcluded = 0x001
formatsExcluded = 0x031 # exclude the intro background texture
overwriteWidth = 3840
overwriteHeight = 2160
[TextureRedefine] # gamepad
width = 854
height = 480
#overwriteWidth = 1920
#overwriteHeight = 1080

View File

@ -1,9 +0,0 @@
[TropicalFreeze2]
moduleMatches = 0x4FF15DD2
0x10018498 = .float 2.370
0x10094758 = .float 2.370
[TropicalFreeze16]
moduleMatches = 0xA37C99E1
0x100184A8 = .float 2.370
0x100946F8 = .float 2.370

View File

@ -1,12 +0,0 @@
[Definition]
titleIds = 0005000010137F00,0005000010138300,0005000010144800
name = "Donkey Kong Country: Tropical Freeze - 5120x2160 (21:9)" #
version = 2
[TextureRedefine] # game rendering resolution
width = 1280
height = 720
tileModesExcluded = 0x001
formatsExcluded = 0x41A # exclude the intro background texture
overwriteWidth = 5120
overwriteHeight = 2160

View File

@ -0,0 +1,20 @@
<?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, '.', '');
?>
[TropicalFreeze2]
moduleMatches = 0x4FF15DD2
0x10018498 = .float <?=$aspect?>
0x10094758 = .float <?=$aspect?>
[TropicalFreeze16]
moduleMatches = 0xA37C99E1
0x100184A8 = .float <?=$aspect?>
0x100946F8 = .float <?=$aspect?>

View File

@ -0,0 +1,21 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = $fullWidth / 1280.0;
$scaleFactorY = $fullHeight / 720.0;
$title = get_title($fullWidth, $fullHeight);
?>
[Definition]
titleIds = 0005000010137F00,0005000010138300,0005000010144800
name = "Donkey Kong Country: Tropical Freeze - <?=$title?>"
version = 2
[TextureRedefine] # game rendering resolution
width = 1280
height = 720
tileModesExcluded = 0x001
formatsExcluded = 0x41A # exclude the intro background texture
overwriteWidth = <?=round($scaleFactorX*1280)?>
overwriteHeight = <?=round($scaleFactorY*720)?>

View File

@ -99,6 +99,7 @@ std_respack "SonicLostWorld" "${res16by9[@]}" "${res21by9[@]}"
std_respack "Splatoon" "${res16by9[@]}" "${res21by9[@]}" std_respack "Splatoon" "${res16by9[@]}" "${res21by9[@]}"
std_respack "SuperMario3DWorld" "${res16by9[@]}" "${res21by9[@]}" std_respack "SuperMario3DWorld" "${res16by9[@]}" "${res21by9[@]}"
std_respack "SuperSmashBros" "${res16by9[@]}" std_respack "SuperSmashBros" "${res16by9[@]}"
std_respack "TropicalFreeze" "${res16by9[@]}" "${res21by9[@]}"
std_respack "TwilightPrincessHD" "${res16by9[@]}" std_respack "TwilightPrincessHD" "${res16by9[@]}"
std_respack "WindWakerHD" "${res16by9[@]}" "${res21by9[@]}" std_respack "WindWakerHD" "${res16by9[@]}" "${res21by9[@]}"
std_respack "WoollyWorld" "${res16by9[@]}" "${res21by9[@]}" std_respack "WoollyWorld" "${res16by9[@]}" "${res21by9[@]}"