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 ; wOptions: med text speed
db TEXT_DELAY_MED db TEXT_DELAY_MED
; wSaveFileExists: no ; wSaveFileExists: no
db $00 db FALSE
; wTextBoxFrame: frame 1 ; wTextBoxFrame: frame 1
db FRAME_1 db FRAME_1
; wTextBoxFlags: use text speed ; wTextBoxFlags: use text speed

View File

@@ -89,7 +89,7 @@ MoveMonWOMail_InsertMon_SaveGame:
pop de pop de
ld a, e ld a, e
ld [wCurBox], a ld [wCurBox], a
ld a, $1 ld a, TRUE
ld [wSaveFileExists], a ld [wSaveFileExists], a
farcall StageRTCTimeForSave farcall StageRTCTimeForSave
farcall BackupMysteryGift farcall BackupMysteryGift
@@ -253,7 +253,7 @@ SavedTheGame:
ret ret
SaveGameData_: SaveGameData_:
ld a, 1 ld a, TRUE
ld [wSaveFileExists], a ld [wSaveFileExists], a
farcall StageRTCTimeForSave farcall StageRTCTimeForSave
farcall BackupMysteryGift farcall BackupMysteryGift
@@ -627,7 +627,7 @@ TryLoadSaveFile:
ret ret
TryLoadSaveData: TryLoadSaveData:
xor a xor a ; FALSE
ld [wSaveFileExists], a ld [wSaveFileExists], a
call CheckPrimarySaveFile call CheckPrimarySaveFile
ld a, [wSaveFileExists] ld a, [wSaveFileExists]
@@ -690,7 +690,7 @@ CheckPrimarySaveFile:
ld bc, wOptionsEnd - wOptions ld bc, wOptionsEnd - wOptions
call CopyBytes call CopyBytes
call CloseSRAM call CloseSRAM
ld a, $1 ld a, TRUE
ld [wSaveFileExists], a ld [wSaveFileExists], a
.nope .nope