Use TRUE/FALSE for wSaveFileExists

This commit is contained in:
Rangi 2018-07-04 02:50:27 -04:00
parent b565e6a9dc
commit 255f282a60
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ DefaultOptions:
; wOptions: med text speed
db TEXT_DELAY_MED
; wSaveFileExists: no
db $00
db FALSE
; wTextBoxFrame: frame 1
db FRAME_1
; wTextBoxFlags: use text speed

View File

@ -89,7 +89,7 @@ MoveMonWOMail_InsertMon_SaveGame:
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 @@ SavedTheGame:
ret
SaveGameData_:
ld a, 1
ld a, TRUE
ld [wSaveFileExists], a
farcall StageRTCTimeForSave
farcall BackupMysteryGift
@ -627,7 +627,7 @@ TryLoadSaveFile:
ret
TryLoadSaveData:
xor a
xor a ; FALSE
ld [wSaveFileExists], a
call CheckPrimarySaveFile
ld a, [wSaveFileExists]
@ -690,7 +690,7 @@ CheckPrimarySaveFile:
ld bc, wOptionsEnd - wOptions
call CopyBytes
call CloseSRAM
ld a, $1
ld a, TRUE
ld [wSaveFileExists], a
.nope