Poke_Transporter_GB/include/libraries/libmgba
Philippe Symons 1ee98caa55 Integrate libmgba into PTGB debug builds
This allows us to log to mgba's logging window.
It will be very useful to debug issues.

But we only allow enabling this for debug builds for license reasons.
2026-03-30 21:06:36 +02:00
..
LICENSE Integrate libmgba into PTGB debug builds 2026-03-30 21:06:36 +02:00
mgba.h Integrate libmgba into PTGB debug builds 2026-03-30 21:06:36 +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.