[gbastartup] Add mGBA logging
This commit is contained in:
parent
3f86932ad8
commit
abaa970396
5
deps/gbastartup/cstartup.cpp
vendored
5
deps/gbastartup/cstartup.cpp
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user