Add logging (#492)

* Add logger implementation for mgba debugging

* Add logging details to contributors guide

* Clang-format

* update docs real quick

* Cleanup for PR

* Update for PR

* Fix bad rebase

* Fix docs
This commit is contained in:
Rickey
2026-05-21 20:07:34 -07:00
committed by GitHub
parent c2844a5d32
commit d7414157a5
5 changed files with 152 additions and 1 deletions
+5 -1
View File
@@ -20,6 +20,7 @@
// Audio
#include "audio_utils.h"
#include "mgba_logger.h"
#include "soundbank.h"
#include "soundbank_bin.h"
@@ -31,6 +32,10 @@ void init()
irq_add(II_VBLANK, mmVBlank);
irq_add(II_HBLANK, affine_background_hblank);
#ifdef MGBA_LOGGING
mgba_logger_init();
#endif
// Initialize text engine
tte_init_se(
0,
@@ -86,7 +91,6 @@ void init()
REG_DISPCNT = DCNT_MODE1 | DCNT_OBJ_1D | DCNT_BG0 | DCNT_BG1 | DCNT_BG2 | DCNT_OBJ | DCNT_WIN0 |
DCNT_WIN1;
// Initialize subsystems
mmInitDefault((mm_addr)soundbank_bin, GBAL_MM_NUM_CHANNELS);
load_options();