2018-06-24 14:09:41 +00:00
|
|
|
_DeleteSaveData:
|
2018-03-25 16:24:14 +00:00
|
|
|
farcall BlankScreen
|
|
|
|
ld b, SCGB_DIPLOMA
|
|
|
|
call GetSGBLayout
|
|
|
|
call LoadStandardFont
|
|
|
|
call LoadFontsExtra
|
|
|
|
ld de, MUSIC_MAIN_MENU
|
|
|
|
call PlayMusic
|
2019-10-20 22:24:17 +00:00
|
|
|
ld hl, .ClearAllSaveDataText
|
2018-03-25 16:24:14 +00:00
|
|
|
call PrintText
|
|
|
|
ld hl, .NoYesMenuHeader
|
|
|
|
call CopyMenuHeader
|
|
|
|
call VerticalMenu
|
|
|
|
ret c
|
|
|
|
ld a, [wMenuCursorY]
|
|
|
|
cp $1
|
|
|
|
ret z
|
|
|
|
farcall EmptyAllSRAMBanks
|
|
|
|
ret
|
|
|
|
|
2019-10-20 22:24:17 +00:00
|
|
|
.ClearAllSaveDataText:
|
|
|
|
text_far _ClearAllSaveDataText
|
2018-11-17 18:33:03 +00:00
|
|
|
text_end
|
2018-03-25 16:24:14 +00:00
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
.NoYesMenuHeader:
|
2018-03-25 16:24:14 +00:00
|
|
|
db 0 ; flags
|
|
|
|
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
|
|
|
dw .MenuData
|
|
|
|
db 1 ; default option
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
.MenuData:
|
2018-03-25 16:24:14 +00:00
|
|
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
|
|
|
db 2 ; items
|
|
|
|
db "NO@"
|
|
|
|
db "YES@"
|