summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-27 06:08:02 +0200
committerTreeki <treeki@gmail.com>2012-09-27 06:08:02 +0200
commit87cb3ef8451f6e6dc0f642d22f5335c1c4f4b064 (patch)
treeee84faa773436063126b18cc31da3caa04ccdb3c /src
parente30d836af369f251f83375dd9a9dbab435ee61f1 (diff)
downloadkamek-87cb3ef8451f6e6dc0f642d22f5335c1c4f4b064.tar.gz
kamek-87cb3ef8451f6e6dc0f642d22f5335c1c4f4b064.zip
a tiny bit of savefile RE, and default world stuff in the savefile
Diffstat (limited to 'src')
-rw-r--r--src/fileselect.S29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/fileselect.S b/src/fileselect.S
index 16a1047..6ee1c39 100644
--- a/src/fileselect.S
+++ b/src/fileselect.S
@@ -247,6 +247,22 @@ FSDebugStates:
addi r1, r1, 0x10
blr
+.global DefaultSavefileInfo
+DefaultSavefileInfo:
+ addi r4, r3, 0x6FC
+ lis r5, DefaultSavefileInfoData@h
+ ori r5, r5, DefaultSavefileInfoData@l
+ lis r6, DefaultSavefileInfoDataEnd@h
+ ori r6, r6, DefaultSavefileInfoDataEnd@l
+DSFICopyLoop:
+ lwz r7, 0(r5)
+ stw r7, 0(r4)
+ addi r4, r4, 4
+ addi r5, r5, 4
+ cmpw r5, r6
+ blt DSFICopyLoop
+ blr
+
.align 4
.data
@@ -281,3 +297,16 @@ ConvertedWorldName:
.short 0,0,0,0,0,0,0,0,0,0,0,0 # 12
.short 0,0,0,0,0,0,0,0,0,0,0,0 # 12
+.align 4
+DefaultSavefileInfoData:
+.string "Yoshi's Island" #15
+.byte 0,0,0,0,0,0,0,0,0,0,0 # 11
+.byte 0,0,0,0,0,0,0,0,0,0 # 10
+.long 0xFFFF99FF,0x1FB423FF
+.long 0x173714FF,0x3C9135FF
+.long 0xFFFF99FF,0x1FB423FF
+.short 0x75,0x2E,0xB
+.byte 0,0
+
+DefaultSavefileInfoDataEnd:
+.long 0