mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-27 03:54:15 +01:00
61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
<?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, '.', '');
|
|
?>
|
|
[SplatoonV272uw]
|
|
moduleMatches = 0xF7A78809
|
|
|
|
#rodata constants
|
|
|
|
0x1004364C = .float <?=$aspect?>
|
|
0x10124BE0 = .float <?=$aspect?>
|
|
0x10158FE0 = .float <?=$aspect?>
|
|
0x10160454 = .float <?=$aspect?>
|
|
|
|
_aspectAddr = 0x1004364C
|
|
|
|
#patches
|
|
|
|
0x028B1910 = lis r29, _aspectAddr@ha ;hud
|
|
0x028B1914 = lfs f13, _aspectAddr@l(r29) ;hud
|
|
|
|
0x02014864 = lis r4, _aspectAddr@ha ;master ar
|
|
0x0201486C = lfs f9, _aspectAddr@l(r4) ;master ar
|
|
|
|
0x02014570 = lis r4, _aspectAddr@ha ;transition frames
|
|
0x02014578 = lfs f9, _aspectAddr@l(r4)
|
|
0x0201434C = lis r4, _aspectAddr@ha
|
|
0x02014354 = lfs f9, _aspectAddr@l(r4)
|
|
|
|
[SplatoonV0uw]
|
|
moduleMatches = 0x08ED6677
|
|
|
|
#rodata constants
|
|
0x1003C670 = .float <?=$aspect?>
|
|
0x101092B0 = .float <?=$aspect?>
|
|
0x10144564 = .float <?=$aspect?>
|
|
0x1014A514 = .float <?=$aspect?>
|
|
|
|
_aspectAddr = 0x1003C670
|
|
|
|
#patches
|
|
|
|
0x027E6400 = lis r29, _aspectAddr@ha ;hud
|
|
0x027E6404 = lfs f13, _aspectAddr@l(r29) ;hud
|
|
|
|
0x02015690 = lis r4, _aspectAddr@ha ;master AR
|
|
0x02015698 = lfs f9, _aspectAddr@l(r4)
|
|
|
|
0x0201539C = lis r4, _aspectAddr@ha ;Transition frames
|
|
0x020153A4 = lfs f9, _aspectAddr@l(r4)
|
|
|
|
0x02015178 = lis r4, _aspectAddr@ha ;Transition frames
|
|
0x02015180 = lfs f9, _aspectAddr@l(r4)
|