mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-21 19:45:10 +00:00
Add support for the missing dialog text characters for romhacks
This commit is contained in:
parent
48d517ab0d
commit
3e727d6362
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue