diff --git a/source/dbg/debug_menu_functions.cpp b/source/dbg/debug_menu_functions.cpp index b0d5850..1e397b8 100644 --- a/source/dbg/debug_menu_functions.cpp +++ b/source/dbg/debug_menu_functions.cpp @@ -252,21 +252,15 @@ void dbg_inject_pkmn(void *context, unsigned user_param) create_textbox(BOX_TYPE_DIALOUGEBOX, true); show_textbox(); - convert_OT_to_utf8(encoded_OT, decoded_OT_utf8, tables.gen3_charset); - - npf_snprintf(text_buffer, sizeof(text_buffer), "%s received a Celebi!\n Celebi was sent to box %d!", decoded_OT_utf8, boxIndex); - tte_set_pos(LEFT, TOP); tte_erase_rect(LEFT, TOP, RIGHT, BOTTOM); + + convert_OT_to_utf8(encoded_OT, decoded_OT_utf8, tables.gen3_charset); + npf_snprintf(text_buffer, sizeof(text_buffer), "%s received a Celebi!\n Celebi was sent to box %d!", decoded_OT_utf8, boxIndex); ptgb_write_debug(tables.gen3_charset, text_buffer, false); - while(true) - { - if (key_hit(KEY_A)) - { - hide_textbox(); - break; - } - global_next_frame(); - } + wait_for_user_to_continue(); + + hide_textbox(); + tte_erase_rect(LEFT, TOP, RIGHT, BOTTOM); } \ No newline at end of file diff --git a/source/main.cpp b/source/main.cpp index 3259b80..ee0c9fe 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -436,6 +436,7 @@ int main(void) #if ENABLE_DEBUG_MENU case (BTN_DEBUG_MENU): obj_hide_multi(ptgb_logo_l, 2); + load_flex_background(FLEXBG_FENNEL, 3); show_debug_menu(); break; #endif