summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--kamek_pal.x2
-rw-r--r--spritetex.yaml4
-rwxr-xr-xsrc/spritetex.S8
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: