From b31b8205be154805c3f5caf2fc9444ed21634304 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 7 Feb 2013 03:41:41 +0100 Subject: bigmet pow block fix --- kamek_pal.x | 2 ++ spritetex.yaml | 4 ++++ src/spritetex.S | 8 ++++++++ 3 files changed, 14 insertions(+) diff --git a/kamek_pal.x b/kamek_pal.x index 67e1186..9dc0c81 100644 --- a/kamek_pal.x +++ b/kamek_pal.x @@ -1,4 +1,6 @@ SECTIONS { + OriginalPowBlockActivated = 0x800A0C70; + isReplayEnabled = 0x80002EEE; UpdateSelectCursor = 0x800B44D0; diff --git a/spritetex.yaml b/spritetex.yaml index 5207f39..a2139f2 100644 --- a/spritetex.yaml +++ b/spritetex.yaml @@ -81,6 +81,10 @@ hooks: src_addr_pal: 0x809B6B44 target_func: 'TEX_GiantBuzzy' + - name: BigMetPowFix + type: add_func_pointer + src_addr_pal: 0x80AD8A64 + target_func: 'BigMetPowFix' - name: TEX_Buzzy type: branch_insn diff --git a/src/spritetex.S b/src/spritetex.S index a107031..f5d5ee5 100755 --- a/src/spritetex.S +++ b/src/spritetex.S @@ -1458,6 +1458,14 @@ TEX_CloudLT_Ca: +.global BigMetPowFix +.extern OriginalPowBlockActivated +BigMetPowFix: + lwz r5, 4(r3) + extrwi. r5, r5, 4,4 + beqlr + b OriginalPowBlockActivated + .data BomombDir: -- cgit v1.2.3