From c877b85aba1674182c5de24b0946f8bffc1e9a91 Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 6 Feb 2012 21:04:26 +0100 Subject: added mushroom platform retexture --- spritetex.yaml | 7 +++++++ src/spritetex.S | 8 ++++++++ 2 files changed, 15 insertions(+) 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) -- cgit v1.2.3