summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-11-23 13:29:11 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2017-11-23 13:29:11 -0500
commite8b1059345c87b15c74262b2a761e5c7be526a5f (patch)
tree80ec9b55c4da0b992ded4c51a066e27bac03e74c
parentef18d3b8ec2ec0e0c0d7f4c48c9da921e34c5b02 (diff)
CHAR_SPECIAL_F7 constant
Preface for string decompilation
-rw-r--r--include/text.h1
-rw-r--r--src/unk_text_util.c2
2 files changed, 2 insertions, 1 deletions
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++;
}