diff options
author | Treeki <treeki@gmail.com> | 2012-02-06 21:04:26 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-02-06 21:04:26 +0100 |
commit | c877b85aba1674182c5de24b0946f8bffc1e9a91 (patch) | |
tree | dd8b546eb3123a3d7aaaa93d86d627c2f0c18eae | |
parent | 3367250069d4264032fc6830a75a0e1ad9960886 (diff) | |
download | kamek-c877b85aba1674182c5de24b0946f8bffc1e9a91.tar.gz kamek-c877b85aba1674182c5de24b0946f8bffc1e9a91.zip |
added mushroom platform retexture
-rw-r--r-- | spritetex.yaml | 7 | ||||
-rwxr-xr-x | src/spritetex.S | 8 |
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) |