You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Use TRUE/FALSE for wSaveFileExists
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user