Added status window switching hacks

This commit is contained in:
jeffman 2017-03-16 20:32:11 -04:00
parent d5e6b9d027
commit f9c5fc4ad8
2 changed files with 39 additions and 1 deletions

View File

@ -35,12 +35,19 @@ org $80BE1FA; strh r2,[r6,#0]
org $80BE222; strh r6,[r1,#0]
//---------------------------------------------------------
// C0A5C (status window)
// C0A5C hacks (status window)
//---------------------------------------------------------
incsrc m2-status-initial.asm
incsrc m2-status-switch.asm
//---------------------------------------------------------
// BAC18 hacks (status window switching)
//---------------------------------------------------------
org $80BACFC; bl m2_vwf_entries.bac18_redraw_status
org $80BADE6; bl m2_vwf_entries.bac18_redraw_status
//---------------------------------------------------------
// C1FBC hacks (PSI window)
//---------------------------------------------------------

View File

@ -304,3 +304,34 @@ mov r1,#0xF
mov r2,#0x14
bl m2_vwf.print_blankstr
pop {pc}
//==============================================================================
// Redraws the status window (when exiting the PSI submenu, etc.)
.bac18_redraw_status:
push {r4,lr}
ldr r4,=#0x3005230
ldr r4,[r4,#0x18]
// Get the address of the status text
ldr r0,=#0x8B17EE4
ldr r1,=#0x8B17424
mov r2,#0x11
bl $80BE260
// Prepare the window for parsing
mov r1,r0
mov r0,r4
mov r2,#0
bl $80BE458
// Render text
mov r0,r4
bl $80C8FFC
// Render numbers
mov r0,r4
mov r1,#0
bl $80C0A5C
pop {r4,pc}