summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-16 04:31:01 +0200
committerTreeki <treeki@gmail.com>2012-09-16 04:31:01 +0200
commit8102791c2222c31d80858cd1d12b208dcd4ecbc3 (patch)
treea8dc7df7044119b78bcde08466a683af499c9b95 /src
parent733662f0e08b3e7574ff26fc3743f703ee53114a (diff)
downloadkamek-8102791c2222c31d80858cd1d12b208dcd4ecbc3.tar.gz
kamek-8102791c2222c31d80858cd1d12b208dcd4ecbc3.zip
added an untested world name thing
Diffstat (limited to '')
-rw-r--r--src/fileselect.S28
-rw-r--r--src/newer.cpp2
2 files changed, 29 insertions, 1 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
diff --git a/src/newer.cpp b/src/newer.cpp
index 314b50f..215dfeb 100644
--- a/src/newer.cpp
+++ b/src/newer.cpp
@@ -44,7 +44,7 @@ NWRWorld NewerWorldForLevelID(int w, int l) {
}
-static const wchar_t *NewerWorldNames[] = {
+const wchar_t *NewerWorldNames[] = {
L"Yoshi's Island",
L"Rubble Ruins",
L"Soggy Sewers",