mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-26 19:44:14 +01:00
3a7514660f
This reverts commit 796f2eea95
.
138 lines
3.5 KiB
Plaintext
138 lines
3.5 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, '.', '');
|
|
?>
|
|
[BotwAspectsV33]
|
|
moduleMatches = 0xD91A406D
|
|
# rodata constants
|
|
0x10197FC0 = .float <?=$aspect?>
|
|
0x102CCFC0 = .float <?=$aspect?>
|
|
0x10331374 = .float <?=$aspect?>
|
|
_aspectAddr = 0x10197FC0
|
|
|
|
# menu link aspect (calculated every load)
|
|
0x02CFC260 = lis r9, _aspectAddr@ha
|
|
0x02CFC274 = lfs f4, _aspectAddr@l(r9)
|
|
|
|
# 3d aspect (calculated every frame)
|
|
0x036AD410 = lis r28, ha16(_aspectAddr)
|
|
0x036AD414 = lfs f12, _aspectAddr(r28)
|
|
|
|
[BotwAspectsV48]
|
|
moduleMatches = 0x0F748D9C
|
|
# rodata constants
|
|
0x10197FC0 = .float <?=$aspect?>
|
|
0x102CCFC8 = .float <?=$aspect?>
|
|
0x103313A4 = .float <?=$aspect?>
|
|
_aspectAddr = 0x10197FC0
|
|
|
|
# menu link aspect (calculated every load)
|
|
0x02CFC2CC = lis r9, _aspectAddr@ha
|
|
0x02CFC2E0 = lfs f4, _aspectAddr@l(r9)
|
|
|
|
# 3d aspect (calculated every frame)
|
|
0x036AD81C = lis r28, ha16(_aspectAddr)
|
|
0x036AD820 = lfs f12, _aspectAddr(r28)
|
|
|
|
[BotwAspectsV64]
|
|
moduleMatches = 0x9A61FF4C
|
|
# rodata constants
|
|
0x10198250 = .float <?=$aspect?>
|
|
0x102CD450 = .float <?=$aspect?>
|
|
0x1033182C = .float <?=$aspect?>
|
|
_aspectAddr = 0x10198250
|
|
|
|
# menu link aspect (calculated every load)
|
|
0x02CFD900 = lis r9, _aspectAddr@ha
|
|
0x02CFD914 = lfs f4, _aspectAddr@l(r9)
|
|
|
|
# 3d aspect (calculated every frame)
|
|
0x036AEF04 = lis r28, ha16(_aspectAddr)
|
|
0x036AEF08 = lfs f12, _aspectAddr(r28)
|
|
|
|
[BotwAspectsV80]
|
|
moduleMatches = 0x8E3324A9
|
|
# rodata constants
|
|
0x1019A5A8 = .float <?=$aspect?>
|
|
0x102D4E30 = .float <?=$aspect?>
|
|
0x103391B4 = .float <?=$aspect?>
|
|
_aspectAddr = 0x1019A5A8
|
|
|
|
# menu link aspect (calculated every load)
|
|
0x02D056C8 = lis r9, _aspectAddr@ha
|
|
0x02D056DC = lfs f4, _aspectAddr@l(r9)
|
|
|
|
# 3d aspect (calculated every frame)
|
|
0x036D0324 = lis r28, ha16(_aspectAddr)
|
|
0x036D0328 = lfs f12, _aspectAddr(r28)
|
|
|
|
[BotwAspectsV97]
|
|
moduleMatches = 0xD71D859D
|
|
# rodata constants
|
|
0x1019F980 = .float <?=$aspect?>
|
|
0x102DF8A0 = .float <?=$aspect?>
|
|
0x1034122C = .float <?=$aspect?>
|
|
_aspectAddr = 0x1019F980
|
|
|
|
# menu link aspect (calculated every load)
|
|
0x02D2E65C = lis r9, _aspectAddr@ha
|
|
0x02D2E670 = lfs f4, _aspectAddr@l(r9)
|
|
|
|
# 3d aspect (calculated every frame)
|
|
0x03725CE8 = lis r28, ha16(_aspectAddr)
|
|
0x03725CEC = lfs f12, _aspectAddr(r28)
|
|
|
|
[BotwAspectsV112]
|
|
moduleMatches = 0x6FD41A61
|
|
# rodata constants
|
|
0x1019F9A8 = .float <?=$aspect?>
|
|
0x102DFB38 = .float <?=$aspect?>
|
|
0x103414D4 = .float <?=$aspect?>
|
|
_aspectAddr = 0x1019F9A8
|
|
|
|
# menu link aspect (calculated every load)
|
|
0x02D2F404 = lis r9, _aspectAddr@ha
|
|
0x02D2F418 = lfs f4, _aspectAddr@l(r9)
|
|
|
|
# 3d aspect (calculated every frame)
|
|
0x03726E18 = lis r28, ha16(_aspectAddr)
|
|
0x03726E1C = lfs f12, _aspectAddr(r28)
|
|
|
|
[BotwAspectsV144]
|
|
moduleMatches = 0x9A2CA0C7
|
|
# rodata constants
|
|
0x101A8A70 = .float <?=$aspect?>
|
|
0x102ECFD0 = .float <?=$aspect?>
|
|
0x1034F6CC = .float <?=$aspect?>
|
|
_aspectAddr = 0x101A8A70
|
|
|
|
# menu link aspect (calculated every load)
|
|
0x02D53CF4 = lis r9, _aspectAddr@ha
|
|
0x02D53D08 = lfs f4, _aspectAddr@l(r9)
|
|
|
|
# 3d aspect (calculated every frame)
|
|
0x0375B128 = lis r28, ha16(_aspectAddr)
|
|
0x0375B12C = lfs f12, _aspectAddr(r28)
|
|
|
|
[BotwAspectsV160]
|
|
moduleMatches = 0x29DBB52A
|
|
# rodata constants
|
|
0x101A8A70 = .float <?=$aspect?>
|
|
0x102ECF88 = .float <?=$aspect?>
|
|
0x1034F684 = .float <?=$aspect?>
|
|
_aspectAddr = 0x101A8A70
|
|
|
|
# menu link aspect (calculated every load)
|
|
0x02D53CF4 = lis r9, _aspectAddr@ha
|
|
0x02D53D08 = lfs f4, _aspectAddr@l(r9)
|
|
|
|
# 3d aspect (calculated every frame)
|
|
0x0375AFF4 = lis r28, ha16(_aspectAddr)
|
|
0x0375AFF8 = lfs f12, _aspectAddr(r28) |