From 97298c05be5fc0fc65657bd53663f31f2337bcbb Mon Sep 17 00:00:00 2001 From: Jas Laferriere Date: Wed, 31 May 2023 11:00:23 -0400 Subject: [PATCH] display shift-jis chat messages correctly --- Core/Notifications/Chat/ChatNotifications.c | 2 +- Scenes/CSS/Chat/Chat.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Core/Notifications/Chat/ChatNotifications.c b/Core/Notifications/Chat/ChatNotifications.c index 84d22f1..a2a333d 100644 --- a/Core/Notifications/Chat/ChatNotifications.c +++ b/Core/Notifications/Chat/ChatNotifications.c @@ -143,7 +143,7 @@ char *BuildChatTextData(char *playerName, u8 playerIndex, u8 groupId, u8 message st_left(), st_kern(), color, st_sjis_text(playerName), st_text(":"), st_space(), st_color(255, 255, 255), - st_text(message)); + st_sjis_text(message)); } Text *CreateChatMessageText(NotificationMessage *msg) { diff --git a/Scenes/CSS/Chat/Chat.c b/Scenes/CSS/Chat/Chat.c index cde326c..a0f2744 100644 --- a/Scenes/CSS/Chat/Chat.c +++ b/Scenes/CSS/Chat/Chat.c @@ -184,15 +184,15 @@ ChatInput *PadGetChatInput(bool checkForCommands) { // inputs to be checked normally int normalInputs[4] = { - PAD_BUTTON_DPAD_UP, - PAD_BUTTON_DPAD_LEFT, - PAD_BUTTON_DPAD_RIGHT, - PAD_BUTTON_DPAD_DOWN, + PAD_BUTTON_DPAD_UP, + PAD_BUTTON_DPAD_LEFT, + PAD_BUTTON_DPAD_RIGHT, + PAD_BUTTON_DPAD_DOWN, }; // Inputs to be check additionally when window is open int *windowCommands[1] = { - PAD_BUTTON_B, + PAD_BUTTON_B, };