diff options
author | Treeki <treeki@gmail.com> | 2012-10-08 05:46:09 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-10-08 05:46:09 +0200 |
commit | 52e0939049419d144c95f7af446f2c0457dab820 (patch) | |
tree | 9613053ef92ec150f34ab8329cdd8fafb0633c6f /src | |
parent | d95bd02a18814ad629cf5fc7fb60449f2ba7a418 (diff) | |
download | kamek-52e0939049419d144c95f7af446f2c0457dab820.tar.gz kamek-52e0939049419d144c95f7af446f2c0457dab820.zip |
hold the rake for now
Diffstat (limited to 'src')
-rw-r--r-- | src/randomcrap.S | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/randomcrap.S b/src/randomcrap.S index b4e8f02..52b9841 100644 --- a/src/randomcrap.S +++ b/src/randomcrap.S @@ -2,7 +2,7 @@ .global TitleScreenFucker .extern RESTART_CRSIN_LevelStartStruct -.extern SaveFileInstance +.extern SaveFileBuffer TitleScreenFucker: lis r3, RESTART_CRSIN_LevelStartStruct@h ori r3, r3, RESTART_CRSIN_LevelStartStruct@l @@ -10,13 +10,13 @@ TitleScreenFucker: stb r4, 7(r3) # now get the FUCKING WORLD and FUCKING LEVEL - lis r4, SaveFileInstance@h - ori r4, r4, SaveFileInstance@l - lwz r4, 0(r4) - lbz r5, 0x26(r4) + lis r4, SaveFileBuffer@h + ori r4, r4, SaveFileBuffer@l + #lwz r4, 0(r4) + lbz r5, 6(r4) extsb r5, r5 mulli r5, r5, 0x980 - addi r4, r4, 0x6C0 + addi r4, r4, 0x6A0 add r4, r4, r5 # do we need to use Quick Save? get the QS block @@ -30,9 +30,9 @@ quickSaveExists: # now we have the save block in r4 lbz r6, 2(r4) clrlwi. r6, r6, 31 - bne saveIsNotNew + beq saveIsNotNew li r5, 0 - li r6, 9 + li r6, 8 b chosenTitle saveIsNotNew: lbz r5, 0x73A(r4) @@ -43,7 +43,7 @@ chosenTitle: cmpwi r6, 0 bne isntWorld1_1 li r5, 0 - li r6, 9 + li r6, 7 isntWorld1_1: stb r5, 0xC(r3) stb r6, 0xD(r3) |