diff options
Diffstat (limited to '')
-rwxr-xr-x | src/spritetex.S | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/spritetex.S b/src/spritetex.S index f5d5ee5..7c342d8 100755 --- a/src/spritetex.S +++ b/src/spritetex.S @@ -21,6 +21,47 @@ .set sp, 1 +.global BigBlockSound +.extern Delete__7fBase_cFv +.extern PlaySoundWithFunctionB4 +.extern SoundRelatedClass +.extern DetachSound__Q34nw4r3snd11SoundHandleFv +BigBlockSound: + stwu r1, -0x10(r1) + mflr r0 + stw r0, 0x14(r1) + stw r31, 8(r1) + mr r31, r3 + + # create a SoundHandle + li r3, 0 + stw r3, 0xC(r1) + + # call PSWFB4 + lis r3, SoundRelatedClass@h + ori r3, r3, SoundRelatedClass@l + lwz r3, 0(r3) + addi r4, r1, 0xC + li r5, 510 + li r6, 1 + bl PlaySoundWithFunctionB4 + + # destroy SoundHandle + addi r3, r1, 0xC + bl DetachSound__Q34nw4r3snd11SoundHandleFv + + mr r3, r31 + lwz r31, 8(r1) + lwz r0, 0x14(r1) + mtlr r0 + addi r1, r1, 0x10 + b Delete__7fBase_cFv + +.global BigBlockLeapingItem +BigBlockLeapingItem: + oris r0, r0, 0xD00 + blr + .global BooZOrder BooZOrder: mr r3, r30 |