summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-02-06 21:04:26 +0100
committerTreeki <treeki@gmail.com>2012-02-06 21:04:26 +0100
commitc877b85aba1674182c5de24b0946f8bffc1e9a91 (patch)
treedd8b546eb3123a3d7aaaa93d86d627c2f0c18eae
parent3367250069d4264032fc6830a75a0e1ad9960886 (diff)
downloadkamek-c877b85aba1674182c5de24b0946f8bffc1e9a91.tar.gz
kamek-c877b85aba1674182c5de24b0946f8bffc1e9a91.zip
added mushroom platform retexture
Diffstat (limited to '')
-rw-r--r--spritetex.yaml7
-rwxr-xr-xsrc/spritetex.S8
2 files changed, 15 insertions, 0 deletions
diff --git a/spritetex.yaml b/spritetex.yaml
index 1dce59d..e5658c8 100644
--- a/spritetex.yaml
+++ b/spritetex.yaml
@@ -605,6 +605,13 @@ hooks:
target_func: 'TEX_BigShell'
+ - name: TEX_MushroomPlatform
+ type: branch_insn
+ branch_type: bl
+ src_addr_pal: 0x8087F640
+ target_func: 'TEX_MushroomPlatform'
+
+
diff --git a/src/spritetex.S b/src/spritetex.S
index dedfbab..a5e810d 100755
--- a/src/spritetex.S
+++ b/src/spritetex.S
@@ -315,6 +315,14 @@ TEX_Podoboo:
# All these vary
+.global TEX_MushroomPlatform
+TEX_MushroomPlatform:
+ lwz r5, 4(r30)
+ srwi r5, r5, 20
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
.global TEX_RollingHills
TEX_RollingHills:
lwz r5, 4(r30)