From e8b1059345c87b15c74262b2a761e5c7be526a5f Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Thu, 23 Nov 2017 13:29:11 -0500 Subject: [PATCH] CHAR_SPECIAL_F7 constant Preface for string decompilation --- include/text.h | 1 + src/unk_text_util.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/text.h b/include/text.h index 594661717..1da5141aa 100644 --- a/include/text.h +++ b/include/text.h @@ -65,6 +65,7 @@ #define CHAR_x 0xEC #define CHAR_y 0xED #define CHAR_z 0xEE +#define CHAR_SPECIAL_F7 0xF7 #define CHAR_SPECIAL_F9 0xF9 #define CHAR_COLON 0xF0 #define CHAR_PROMPT_SCROLL 0xFA // waits for button press and scrolls dialog diff --git a/src/unk_text_util.c b/src/unk_text_util.c index 825b333bb..2773522b2 100644 --- a/src/unk_text_util.c +++ b/src/unk_text_util.c @@ -32,7 +32,7 @@ u8 *UnkTextUtil_StringExpandPlaceholders(u8 *dest, const u8 *src) { while (*src != EOS) { - if (*src != 0xF7) + if (*src != CHAR_SPECIAL_F7) { *dest++ = *src++; }