diff options
author | ExpoSeed <43502820+ExpoSeed@users.noreply.github.com> | 2020-09-02 13:26:22 -0500 |
---|---|---|
committer | ExpoSeed <43502820+ExpoSeed@users.noreply.github.com> | 2020-09-02 13:26:22 -0500 |
commit | 6930872745f104ed4bb0151acd23b1ffadf27e39 (patch) | |
tree | 910693b1135099f1d611341b5f9798f1e1247c58 | |
parent | 4acbb4b22c49f72ff69be3bae585abce5ed969dd (diff) |
Updated printf in mGBA (markdown)
-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 |