diff options
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 |