mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-22 09:39:17 +01:00
Add Xal's TPHD ultrawide patch
This commit is contained in:
parent
80c38b52b4
commit
de717270c9
24
Source/TwilightPrincessHD/patches.txt
Normal file
24
Source/TwilightPrincessHD/patches.txt
Normal 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
|
2
build.sh
2
build.sh
@ -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[@]}"
|
||||
|
Loading…
Reference in New Issue
Block a user