From 3de0e0bdf41fc05c15d21dfa67f267b0024ab4f0 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 7 Oct 2012 03:23:10 +0200 Subject: fixed the multiplayer pauses --- src/randomcrap.S | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'src') diff --git a/src/randomcrap.S b/src/randomcrap.S index 0b76ad8..64e98c1 100644 --- a/src/randomcrap.S +++ b/src/randomcrap.S @@ -1,4 +1,45 @@ .text +.global mpPauseFix1 +.global mpPauseFix2 +.extern continueFromMpPauseFix1 +.extern continueFromMpPauseFix2 + +mpPauseFix1: + lis r5, continueFromMpPauseFix1@h + ori r5, r5, continueFromMpPauseFix1@l + b mpPauseFix +mpPauseFix2: + lis r5, continueFromMpPauseFix2@h + ori r5, r5, continueFromMpPauseFix2@l + b mpPauseFix + +.extern CheckIfSinglePlayer + +mpPauseFix: + stwu r1, -0x20(r1) + mflr r0 + stw r0, 0x24(r1) + stw r31, 0x1C(r1) + stw r30, 0x18(r1) + mr r31, r3 + mr r30, r4 + + bl CheckIfSinglePlayer + cmpwi r3, 1 + bne DontDoThis + mr r3, r31 + mr r4, r30 + mtctr r5 + bctrl +DontDoThis: + + lwz r30, 0x18(r1) + lwz r31, 0x1C(r1) + lwz r0, 0x24(r1) + mtlr r0 + addi r1, r1, 0x20 + blr + .global newClimbSounds .extern StagePtr newClimbSounds: -- cgit v1.2.3