Poke_Transporter_GB/source/dbg/debug_menu_functions.cpp
Philippe Symons b84939b49a Add debug menu UI when you press L+R in the main menu.
It's only the UI yet. It only shows a couple of dummy options right now.
2026-03-09 19:56:32 +01:00

17 lines
469 B
C++

#include "dbg/debug_menu_functions.h"
#include "libraries/nanoprintf/nanoprintf.h"
#include "text_engine.h"
#include "pokemon_data.h"
void dbg_menu_print_number(void *context, unsigned user_param)
{
(void)context;
char buf[64];
npf_snprintf(buf, sizeof(buf), "%u", user_param);
uint16_t charset[256];
load_localized_charset(charset, 3, ENGLISH);
tte_erase_rect(0, 0, 100, 12);
tte_set_pos(0, 0);
ptgb_write_debug(charset, buf, true);
}