From abaa9703969f91be50924fca4e82d691262217b5 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 3 Dec 2022 16:50:00 -0600 Subject: [PATCH] [gbastartup] Add mGBA logging --- deps/gbastartup/cstartup.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deps/gbastartup/cstartup.cpp b/deps/gbastartup/cstartup.cpp index b79f241b..1ffb0942 100644 --- a/deps/gbastartup/cstartup.cpp +++ b/deps/gbastartup/cstartup.cpp @@ -8,6 +8,10 @@ #include +namespace mgba { +void initConsole(); +} + #define MEM_EWRAM_BEGIN reinterpret_cast(0x02000000) #define MEM_EWRAM_END reinterpret_cast(0x0203FFFF) @@ -39,6 +43,7 @@ void __libc_init_array() { int c_start() { const char *args[2] = {"", "rom.oxfs"}; ox::heapmgr::initHeap(HEAP_BEGIN, HEAP_END); + mgba::initConsole(); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" return main(2, args);