diff options
author | Treeki <treeki@gmail.com> | 2012-09-16 04:31:01 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-16 04:31:01 +0200 |
commit | 8102791c2222c31d80858cd1d12b208dcd4ecbc3 (patch) | |
tree | a8dc7df7044119b78bcde08466a683af499c9b95 /src/fileselect.S | |
parent | 733662f0e08b3e7574ff26fc3743f703ee53114a (diff) | |
download | kamek-8102791c2222c31d80858cd1d12b208dcd4ecbc3.tar.gz kamek-8102791c2222c31d80858cd1d12b208dcd4ecbc3.zip |
added an untested world name thing
Diffstat (limited to '')
-rw-r--r-- | src/fileselect.S | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/fileselect.S b/src/fileselect.S index b243e7f..0c1590c 100644 --- a/src/fileselect.S +++ b/src/fileselect.S @@ -51,6 +51,34 @@ DFNiceTitle: mtctr r12 bctr +.extern NewerWorldNames +.global DFNiceWorldName +DFNiceWorldName: + stwu r1, -0x10(r1) + mflr r0 + stw r0, 0x14(r1) + stw r20, 0xC(r1) + mr r20, r4 + + # get Newer map number + lbz r6, 0x6FC(r31) + slwi r6, r6, 4 + lis r7, NewerWorldNames@h + ori r7, r7, NewerWorldNames@l + lwzx r4, r7, r6 + + mr r3, r20 + lwz r12, 0(r3) + lwz r12, 0x7C(r12) + mtctr r12 + bctrl + + lwz r20, 0xC(r1) + lwz r0, 0x14(r1) + mtlr r0 + addi r1, r1, 0x10 + blr + .align 4 .data |