From b0e9b37bf2d4685c42f989d479cefd10790c48e4 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 28 Dec 2024 16:26:42 -0800 Subject: [PATCH] build fix --- src/f_op/f_op_msg_mng.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/f_op/f_op_msg_mng.cpp b/src/f_op/f_op_msg_mng.cpp index 3ef145fa..656e61e6 100644 --- a/src/f_op/f_op_msg_mng.cpp +++ b/src/f_op/f_op_msg_mng.cpp @@ -17,6 +17,8 @@ #include "SSystem/SComponent/c_malloc.h" #include +#include "global.h" + struct mesg_header : JUTDataFileHeader { // first block is mesg_info }; @@ -534,7 +536,11 @@ mesg_header* fopMsgM_msgGet_c::getMesgHeader(u32 msg) { mMsgID = msg & 0xFFFF; if (fopMsgM_hyrule_language_check(msg)) { +#if VERSION != VERSION_JPN JKRArchive* arc = dComIfGp_getMsgDt2Archive(); +#else + JKRArchive* arc = dComIfGp_getMsgDtArchive(); +#endif return (mesg_header*)JKRArchive::getGlbResource('ROOT', "zel_01.bmg", arc); } else { JKRArchive* arc = dComIfGp_getMsgDtArchive(); @@ -586,7 +592,11 @@ mesg_header* fopMsgM_itemMsgGet_c::getMesgHeader(u32 msg) { mMsgID = msg & 0xFFFF; if (fopMsgM_hyrule_language_check(msg)) { +#if VERSION != VERSION_JPN JKRArchive* arc = dComIfGp_getMsgDt2Archive(); +#else + JKRArchive* arc = dComIfGp_getMsgDtArchive(); +#endif return (mesg_header*)JKRArchive::getGlbResource('ROOT', "zel_01.bmg", arc); } else { JKRArchive* arc = dComIfGp_getMsgDtArchive();