ref: 255f282a60a8440707ac09fa68aa0499b777d2ce
parent: b565e6a9dc5f54fad37f750ae546e2334a6c66e5
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Tue Jul 3 22:50:27 EDT 2018
Use TRUE/FALSE for wSaveFileExists
--- a/data/default_options.asm
+++ b/data/default_options.asm
@@ -2,7 +2,7 @@
; wOptions: med text speed
db TEXT_DELAY_MED
; wSaveFileExists: no
- db $00
+ db FALSE
; wTextBoxFrame: frame 1
db FRAME_1
; wTextBoxFlags: use text speed
--- a/engine/menus/save.asm
+++ b/engine/menus/save.asm
@@ -89,7 +89,7 @@
pop de
ld a, e
ld [wCurBox], a
- ld a, $1
+ ld a, TRUE
ld [wSaveFileExists], a
farcall StageRTCTimeForSave
farcall BackupMysteryGift
@@ -253,7 +253,7 @@
ret
SaveGameData_:
- ld a, 1
+ ld a, TRUE
ld [wSaveFileExists], a
farcall StageRTCTimeForSave
farcall BackupMysteryGift
@@ -627,7 +627,7 @@
ret
TryLoadSaveData:
- xor a
+ xor a ; FALSE
ld [wSaveFileExists], a
call CheckPrimarySaveFile
ld a, [wSaveFileExists]
@@ -690,7 +690,7 @@
ld bc, wOptionsEnd - wOptions
call CopyBytes
call CloseSRAM
- ld a, $1
+ ld a, TRUE
ld [wSaveFileExists], a
.nope