mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
Use TRUE/FALSE for wSaveFileExists
This commit is contained in:
parent
b565e6a9dc
commit
255f282a60
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user