diff options
author | Treeki <treeki@gmail.com> | 2013-02-07 03:41:41 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-02-07 03:41:41 +0100 |
commit | b31b8205be154805c3f5caf2fc9444ed21634304 (patch) | |
tree | 4c96393d5718c46f178a22951735ae97c287e787 | |
parent | 9bc66b179bcc95e2bf94e69ef0da8b1281e3681b (diff) | |
download | kamek-b31b8205be154805c3f5caf2fc9444ed21634304.tar.gz kamek-b31b8205be154805c3f5caf2fc9444ed21634304.zip |
bigmet pow block fix
Diffstat (limited to '')
-rw-r--r-- | kamek_pal.x | 2 | ||||
-rw-r--r-- | spritetex.yaml | 4 | ||||
-rwxr-xr-x | src/spritetex.S | 8 |
3 files changed, 14 insertions, 0 deletions
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: |