From 24c1bf1723facc75b841ef68d523573797efb445 Mon Sep 17 00:00:00 2001 From: Max Roncace Date: Sat, 22 Nov 2025 21:40:49 -0500 Subject: Clean up d_msg_unit, misc fixes for PAL and JPN (#2848) --- src/m_Do/m_Do_ext.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/m_Do/m_Do_ext.cpp') diff --git a/src/m_Do/m_Do_ext.cpp b/src/m_Do/m_Do_ext.cpp index 132edace67..3b23d8abd0 100644 --- a/src/m_Do/m_Do_ext.cpp +++ b/src/m_Do/m_Do_ext.cpp @@ -3540,8 +3540,13 @@ static ResFONT* mDoExt_resfont0; /* 80014994-800149F0 00F2D4 005C+00 1/1 0/0 0/0 .text mDoExt_initFont0__Fv */ static void mDoExt_initFont0() { static char const fontdata[] = "rodan_b_24_22.bfn"; +#if REGION_JPN + mDoExt_initFontCommon(&mDoExt_font0, &mDoExt_resfont0, mDoExt_getZeldaHeap(), + fontdata, dComIfGp_getFontArchive(), 0, 200, 512); +#else mDoExt_initFontCommon(&mDoExt_font0, &mDoExt_resfont0, mDoExt_getZeldaHeap(), fontdata, dComIfGp_getFontArchive(), 1, 0, 0); +#endif } /* 800149F0-80014A2C 00F330 003C+00 0/0 51/51 2/2 .text mDoExt_getMesgFont__Fv */ @@ -3564,7 +3569,11 @@ void mDoExt_removeMesgFont() { delete mDoExt_font0; mDoExt_font0 = NULL; if (mDoExt_resfont0 != NULL) { +#if REGION_JPN + JKRFileLoader::removeResource(mDoExt_resfont0, NULL); +#else JKRFree(mDoExt_resfont0); +#endif mDoExt_resfont0 = NULL; } } -- cgit v1.2.3