diff options
-rw-r--r-- | printf-in-mGBA.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/printf-in-mGBA.md b/printf-in-mGBA.md index a0ba761..d0d5944 100644 --- a/printf-in-mGBA.md +++ b/printf-in-mGBA.md @@ -55,4 +55,6 @@ Finally, the testing. make sure you include #include "gba/isagbprint.h" ``` in whatever file you test with. optionally, you can include `#include "../gflib/string_util.h"`, and `#include "data.h"` if you want to get for example a species name. Let's test in `wild_encounter.c`. before `CreateMonWithNature(&gEnemyParty[0], species, level, 32, PickWildMonNature());`, add `mgba_printf(MGBA_LOG_DEBUG, "%s", ConvertToAscii(gSpeciesNames[species]));`. If you want to just get a number, you can do `mgba_printf(MGBA_LOG_DEBUG, "%d", species);`. -That is all.
\ No newline at end of file +That is all. + +TIP: Don't include this in release builds, because `printf` takes a lot of cycles.
\ No newline at end of file |