From c27c9ddcf82bc57a23d37ecf146ba52ff8b832db Mon Sep 17 00:00:00 2001 From: Prakxo Date: Tue, 24 Oct 2023 11:20:05 +0200 Subject: [PATCH] link debug_mode(? --- config/rel_slices.yml | 10 +++++----- rel/m_debug_mode.c | 37 +++++++++++++++++++++++++++---------- 2 files changed, 32 insertions(+), 15 deletions(-) diff --git a/config/rel_slices.yml b/config/rel_slices.yml index e376e718..40f21359 100644 --- a/config/rel_slices.yml +++ b/config/rel_slices.yml @@ -69,11 +69,11 @@ m_debug_hayakawa.c: .text: [0x803965E4, 0x803973E8] .rodata: [0x80641D50, 0x80641D90] .data: [0x80651328, 0x80651358] -#m_debug_mode.c: -# .text: [0x803973E8, 0x803984B4] -# .rodata: [0x80641D90, 0x80641DA8] -# .data: [0x80651358, 0x80651788] -# .bss: [0x81294010, 0x81294E18] +m_debug_mode.c: + .text: [0x803973E8, 0x803984B4] + .rodata: [0x80641D90, 0x80641DA8] + .data: [0x80651358, 0x80651788] + .bss: [0x81294010, 0x81294E18] m_eappli.c: .text: [0x8039A5E0, 0x8039A960] .bss: [0x81295150, 0x81295550] diff --git a/rel/m_debug_mode.c b/rel/m_debug_mode.c index 19dd0885..7b45fcb6 100644 --- a/rel/m_debug_mode.c +++ b/rel/m_debug_mode.c @@ -71,6 +71,14 @@ static debug_mode_print_buf_t debug_print_buffer[DEBUG_MODE_PRINT_BUF_COUNT] = { } }; +void Debug_Print_reset(){ + debug_print_flg = 0; +} + +void Debug_Print_write(){ + debug_print2_count = 0; +} + #pragma pool_data on static void Debug_Print_output(gfxprint_t* gfxprint) { @@ -229,16 +237,22 @@ static int Debug_console(pad_t* pad) { return FALSE; } -static int draw_status; -static int bg_draw_status; -static int bg_draw_status2; -static int quest_draw_status; -static int shop_draw_status; -static int event_status; -static int zelda_malloc_status; -static int famicom_status; -static int npc_draw_status; -static int field_assessment_status; +static u32 draw_status = 0; + + +void silly(){ + draw_status = 1; +} +static int bg_draw_status = 0; +static int bg_draw_status2 = 0; +static int quest_draw_status = 0; +static int shop_draw_status = 0; +static int event_status = 0; +static int zelda_malloc_status = 0; +static u32 famicom_status = 0; +static int npc_draw_status = 0; +static int field_assessment_status = 0; + typedef struct debug_reg_keycombo_s { u16 held; /* Previously held */ @@ -635,6 +649,9 @@ static void DebugHaniwaTempo(gfxprint_t* gfxprint) { #pragma pool_data on extern void Debug_mode_output(GRAPH* graph) { static int glist_used_bytes; + static int font_scale_select; + static int console_position_y; + static int console_position_x; Gfx* start_gfx; Gfx* last_gfx; int poly_free_bytes;