shithub: pokered

ref: 27d0b146addee8185178388e0f7a94353d8409ba
dir: /engine/movie/oak_speech/clear_save.asm/

View raw version
DoClearSaveDialogue:
	call ClearScreen
	call RunDefaultPaletteCommand
	call LoadFontTilePatterns
	call LoadTextBoxTilePatterns
	ld hl, ClearSaveDataText
	call PrintText
	hlcoord 14, 7
	lb bc, 8, 15
	ld a, NO_YES_MENU
	ld [wTwoOptionMenuID], a
	ld a, TWO_OPTION_MENU
	ld [wTextBoxID], a
	call DisplayTextBoxID
	ld a, [wCurrentMenuItem]
	and a
	jp z, Init
	farcall ClearSAV
	jp Init

ClearSaveDataText:
	text_far _ClearSaveDataText
	text_end