summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-22 04:55:08 +0200
committerTreeki <treeki@gmail.com>2012-09-22 04:55:08 +0200
commit2d516c7c77158eb2125ff4f53d5051762df5959d (patch)
tree1dafeb154065ba368c9a6ce0638a6f1860b9ef0c
parent18db1947457951b5ce7c83e10c6ee50c2f76b411 (diff)
downloadkamek-2d516c7c77158eb2125ff4f53d5051762df5959d.tar.gz
kamek-2d516c7c77158eb2125ff4f53d5051762df5959d.zip
file select should be fixed now
-rw-r--r--src/fileselect.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileselect.S b/src/fileselect.S
index 19710ef..9f7f396 100644
--- a/src/fileselect.S
+++ b/src/fileselect.S
@@ -74,7 +74,7 @@ DFNiceWorldName:
# get Newer map number
lbz r6, 0x6FC(r31)
lis r8, NewerWorldCount@h
- ori r8, r8, NewerWorldCount@h
+ ori r8, r8, NewerWorldCount@l
lwz r8, 0(r8)
cmpw r6, r8
bge invalidThing
@@ -82,7 +82,6 @@ DFNiceWorldName:
lis r7, NewerWorldNames@h
ori r7, r7, NewerWorldNames@l
lwzx r4, r7, r6
- li r5, 0
b gotName
invalidThing:
lis r4, InvalidWorld@h
@@ -90,6 +89,7 @@ invalidThing:
gotName:
mr r3, r20
+ li r5, 0
lwz r12, 0(r3)
lwz r12, 0x7C(r12)
mtctr r12