Skip to content

Commit

Permalink
New version v2.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortyne committed Nov 13, 2024
1 parent 72a6aca commit 76b9954
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
5 changes: 4 additions & 1 deletion data/text/text_2.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,10 @@ _SaveFileUpdateText::
line "seems to be from"
cont "an older build"
cont "of the game."
para "Which older build"
prompt

_SaveFileUpdateText2::
text "Which older build"
line "did it come from?"
done

Expand Down
14 changes: 14 additions & 0 deletions engine/menus/save_file_updater.asm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ SaveFileUpdateText:
text_far _SaveFileUpdateText
text_end

SaveFileUpdateText2:
text_far _SaveFileUpdateText2
text_end

PressStartToContinueText:
text_far _SaveFileUpdateTextConfirm
text_end
Expand All @@ -23,8 +27,17 @@ SaveFileUpdateCheck::
ld a, [wGameInternalVersion]
cp CURRENT_INTERNAL_VERSION
ret z ; also nc
push af
ld hl, SaveFileUpdateText
rst _PrintText
pop af
cp INTERNAL_VERSION_ORIGINAL_GAME
jr z, .updateSave
; TODO: future save file updates go here
jr .askPalletWarp
.updateSave
ld hl, SaveFileUpdateText2
rst _PrintText
call SaveScreenTilesToBuffer1
xor a
ld [wCurrentMenuItem], a
Expand All @@ -45,6 +58,7 @@ SaveFileUpdateCheck::
ld hl, SaveFileUpdateCompleteText
rst _PrintText
call DisplayTextPromptButton
.askPalletWarp
; last step: set the current internal version so we don't update the save again later
ld hl, wGameInternalVersion
ld [hl], CURRENT_INTERNAL_VERSION
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
7 changes: 4 additions & 3 deletions version_number.asm
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
db "2.6.1"
db "2.6.2"

; wGameInternalVersion values
const_def
const INTERNAL_VERSION_ORIGINAL_GAME ; also any versions prior to 2.6.0
const INTERNAL_VERSION_2_6_0
const INTERNAL_VERSION_2_6_0 ; also 2.6.1
const INTERNAL_VERSION_2_6_2

DEF CURRENT_INTERNAL_VERSION EQU INTERNAL_VERSION_2_6_0
DEF CURRENT_INTERNAL_VERSION EQU INTERNAL_VERSION_2_6_2

0 comments on commit 76b9954

Please sign in to comment.