summaryrefslogtreecommitdiff
path: root/src/d/d_msg.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2026-04-30 02:56:31 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2026-04-30 02:56:31 -0400
commitc56b902ed1e70903ac9335757dc8432d19ced586 (patch)
tree6e597e687adbe2e0fc5ce543a6b7d80e8533cddd /src/d/d_msg.cpp
parent8fb16fa696861b46d7c524365d606108cf21f704 (diff)
Match fopMsgM_messageGet and fopMsgM_passwordGet
Diffstat (limited to 'src/d/d_msg.cpp')
-rw-r--r--src/d/d_msg.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/d/d_msg.cpp b/src/d/d_msg.cpp
index 36ec3453..1ce38895 100644
--- a/src/d/d_msg.cpp
+++ b/src/d/d_msg.cpp
@@ -39,7 +39,9 @@ J2DPicture* maskPane;
f32 talkPosX;
f32 talkPosY;
s16 textOffsetY;
+#if VERSION >= VERSION_USA
bool dMsg_font_flag;
+#endif
JKRHeap* agb_work_area;
static dDlst_2DMSG_c message;
dDlst_2Dtact_c capture;
@@ -637,6 +639,7 @@ void dMsg_screenDataSetTact(sub_msg_class* i_Msg) {
/* 8020DAC0-8020DC78 .text dMsg_screenDataSet__FP13sub_msg_class */
void dMsg_screenDataSet(sub_msg_class* i_Msg) {
sScreen2 = NULL;
+#if VERSION >= VERSION_USA
if (fopMsgM_hyrule_language_check(i_Msg->mMsgNo)) {
textFont = mDoExt_getRubyFont();
JUT_ASSERT(1162, textFont != NULL);
@@ -647,6 +650,12 @@ void dMsg_screenDataSet(sub_msg_class* i_Msg) {
dMsg_font_flag = 0;
}
rubyFont = textFont;
+#else
+ textFont = mDoExt_getMesgFont();
+ JUT_ASSERT(1157, textFont != NULL);
+ textFont = mDoExt_getRubyFont();
+ JUT_ASSERT(1159, textFont != NULL);
+#endif
for (s32 i = 0; i < 3; i++) {
numberPane[i] = new J2DTextBox("rock_24_20_4i_usa.bfn", "0");
}
@@ -3026,11 +3035,16 @@ static BOOL dMsg_Delete(sub_msg_class* i_Msg) {
if (sScreen2 != NULL) {
delete (J2DScreen*)sScreen2;
}
+#if VERSION >= VERSION_USA
if (dMsg_font_flag != 0) {
mDoExt_removeRubyFont();
} else {
mDoExt_removeMesgFont();
}
+#else
+ mDoExt_removeMesgFont();
+ mDoExt_removeRubyFont();
+#endif
for (s32 i = 0; i < 8; i++) {
delete (J2DPicture*)button_icon[i];
delete (J2DPicture*)button_kage[i];