diff options
author | Kaz <kazbloxmc@gmail.com> | 2020-06-08 04:12:23 -0400 |
---|---|---|
committer | Kaz <kazbloxmc@gmail.com> | 2020-06-08 04:12:23 -0400 |
commit | 2ec8ae4bec77ae4c5dac798a44e497d33be5dd7f (patch) | |
tree | fc96f4194c338567494e42343c7f0283a5bf4da4 /src/text.c | |
parent | 575440fb78a4a8fe0b5e8243a363c66addcfb05b (diff) |
Preliminary support for English rev0 debug. Matching but still needs
cleaning up.
Rename DEBUG_TRANSLATE to DEBUG_FIX now that we have actual English
Debug ROMs.
Add Sapphire German "first edition" debug support, now that we have a
hash for it.
Fix an obvious nonmatching.
Diffstat (limited to 'src/text.c')
-rw-r--r-- | src/text.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c index dbf74ab61..d963045df 100644 --- a/src/text.c +++ b/src/text.c @@ -6,6 +6,7 @@ #include "constants/songs.h" #include "sound.h" #include "string_util.h" +#include "start_menu.h" enum { @@ -2078,7 +2079,7 @@ static u8 sub_8002FA0(struct Window *win, const u8 *text) static u8 PrintNextChar(struct Window *win) { - u8 c = win->text[win->textIndex++]; + u32 c = win->text[win->textIndex++]; // Handle special control characters switch (c) @@ -2106,6 +2107,12 @@ static u8 PrintNextChar(struct Window *win) return HandleExtCtrlCode(win); } +// TODO: see if this is in rev1+ +#if (DEBUG && ENGLISH && REVISION == 0) + // Code related to the Murakawa task. + if ((gUnknown_Debug_03004BD0) && (!gUnknown_Debug_Murakawa2)) + c = win->textMode + CHAR_0; +#endif sPrintGlyphFuncs[win->textMode](win, c); return 1; } |