From 3e727d636282e5d7cf615b2c4ccccaf5e5fcc121 Mon Sep 17 00:00:00 2001 From: David Joslin Date: Thu, 26 Oct 2023 16:09:13 -0700 Subject: [PATCH] Add support for the missing dialog text characters for romhacks --- src/game/ingame_menu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/game/ingame_menu.c b/src/game/ingame_menu.c index 653420ba..8287a60b 100644 --- a/src/game/ingame_menu.c +++ b/src/game/ingame_menu.c @@ -479,6 +479,9 @@ u8 str_ascii_char_to_dialog(char c) { case ' ': return 0x9E; case ',': return 0x6F; case '.': return 0x3F; + case '@': return 0xFA; + case '*': return 0xFB; + case '=': return 0xFD; case '\'': return 0x3E; case '\0': return DIALOG_CHAR_TERMINATOR; default: return ((u8)c < 0xF0) ? ASCII_TO_DIALOG(c) : c; @@ -518,6 +521,12 @@ void str_ascii_to_dialog(const char* string, u8* dialog, u16 length) { } else if (!strncmp(c, ")(", 2)) { *d = 0xE2; c += 1; + } else if (!strncmp(c, "[%]", 3)) { + *d = 0xE0; + c += 2; + } else if (!strncmp(c, "★", 2)) { + *d = 0xFA; + c += 2; } else { *d = str_ascii_char_to_dialog(*c); }