Add Xal's TPHD ultrawide patch

This commit is contained in:
Michael 2018-08-18 21:13:29 -07:00
parent 80c38b52b4
commit de717270c9
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,24 @@
<?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, '.', '');
?>
[TPHDv81]
moduleMatches = 0x1A03E108
#rodata constants
0x1005AAD8 = .float <?=$aspect?>
_aspectAddr = 0x1006AAD8
#code changes
0x028D75B8 = lis r11, _aspectAddr@h
0x028D75C0 = lfs f0, _aspectAddr@l(r11) ; Main 3d Aspect
0x029BB184 = lis r12, _aspectAddr@h
0x029BB188 = lfs f2, _aspectAddr@l(r12) ; may just be the intro zelda graphic

View File

@ -225,7 +225,7 @@ std_respack "Tengami" "${res16by9[@]/$just720p}"
std_respack "TokyoMirage" "${res16by9[@]/$just720p}" "${res21by9[@]}" "${res48by9[@]}"
std_respack "TropicalFreeze" "${res16by9[@]/$just720p}" "${res21by9[@]}" "${res48by9[@]}"
std_respack "TurboSuperStuntSquad" "${res16by9[@]/$just720p}"
std_respack "TwilightPrincessHD" "${res16by9[@]/$just1080p}"
std_respack "TwilightPrincessHD" "${res16by9[@]/$just1080p}" "${res21by9[@]}" "${res48by9[@]}"
std_respack "WarriorsOrochi3" "${res16by9[@]/$just720p}"
std_respack "WiiUBIOS" "${res16by9[@]/$just720p}"
std_respack "WindWakerHD" "${res16by9[@]/$just1080p}" "${res21by9[@]}" "${res48by9[@]}"