Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
magcius committed Dec 29, 2024
1 parent 06709da commit b0e9b37
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/f_op/f_op_msg_mng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include "SSystem/SComponent/c_malloc.h"
#include <stdio.h>

#include "global.h"

struct mesg_header : JUTDataFileHeader {
// first block is mesg_info
};
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit b0e9b37

Please sign in to comment.