diff options
author | Treeki <treeki@gmail.com> | 2013-02-12 23:40:37 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-02-12 23:40:37 +0100 |
commit | 9f244e88204491e85f1c086bc8d3478ea9c34770 (patch) | |
tree | 343ee00c5c90c8e0172ea6afa13b424f484a6cdd /src/randomcrap.S | |
parent | 1c1521acafbef0a024bfeb3d7408e5d7c8123dda (diff) | |
download | kamek-9f244e88204491e85f1c086bc8d3478ea9c34770.tar.gz kamek-9f244e88204491e85f1c086bc8d3478ea9c34770.zip |
gigantic background hack
Diffstat (limited to '')
-rw-r--r-- | src/randomcrap.S | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/randomcrap.S b/src/randomcrap.S index edf5fef..2842d12 100644 --- a/src/randomcrap.S +++ b/src/randomcrap.S @@ -257,6 +257,37 @@ PowEvent: .extern set__10dFlagMgr_cFUcibbbUi .extern instance__10dFlagMgr_c +.global GiganticBackgrounds +GiganticBackgrounds: + lis r3, BGScale@h + ori r3, r3, BGScale@l + lbz r4, 8(r3) + cmpwi r4, 0 + beq NoBGScale + lwz r4, 0x4E4(r31) + cmplwi r4, 0 + beq dontUseBack + addi r3, r3, 8 +dontUseBack: + + lfs f1, 0(r3) + stfs f1, 0xDC(r31) + lfs f1, 4(r3) + stfs f1, 0xE0(r31) +NoBGScale: + lwz r31, 0x5C(r1) + lwz r0, 0x64(r1) + mtlr r0 + addi r1, r1, 0x60 + blr + +.data +.global BGScaleFront, BGScaleBack, BGScaleEnabled +BGScale: +BGScaleFront: .float 1.0, 1.0 +BGScaleBack: .float 1.0, 1.0 +BGScaleEnabled: .byte 0 + #AllocLog: # stwu r1, -0x20(r1) # mflr r0 |