diff options
-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) |