[gbastartup] Add mGBA logging

This commit is contained in:
Gary Talent 2022-12-03 16:50:00 -06:00
parent 3f86932ad8
commit abaa970396

View File

@ -8,6 +8,10 @@
#include <ox/std/heapmgr.hpp>
namespace mgba {
void initConsole();
}
#define MEM_EWRAM_BEGIN reinterpret_cast<char*>(0x02000000)
#define MEM_EWRAM_END reinterpret_cast<char*>(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);