Poke_Transporter_GB/include/libraries/libmgba
Philippe Symons 58654de02c Fix MGBA logging bug
va args passing was broken in my initial implementation, causing garbage values to get printed whenever you try
to print an actual argument.

Moreover, I also had a bug in the PTGB_MGBA_XYZ macros.

Sorry, I should've tested it with actual arguments.
2026-03-31 16:40:16 +02:00
..
LICENSE Integrate libmgba into PTGB debug builds 2026-03-30 21:06:36 +02:00
mgba.h Fix MGBA logging bug 2026-03-31 16:40:16 +02:00
README.md Integrate libmgba into PTGB debug builds 2026-03-30 21:06:36 +02:00

Usage of libmgba in Poke_Transporter_GB

Libmgba has been copied from https://github.com/mgba-emu/mgba/tree/master/opt/libgba

It offers a way to push debug logging to the MGBA emulator. This is useful during development.

While we are using libmgba in Poke_Transporter_GB for debugging purposes, we have taken special care that the code doesn't end up in an actual release build. (static assert) Only debug builds can include libmgba into Poke_Transporter_GB. However, these shouldn't end up in end-users hands.