summaryrefslogtreecommitdiff
path: root/src/f_op
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-04-29 15:44:49 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-04-29 15:44:49 -0400
commit2690304a7415fd5c96956a68f739a8ceaff64798 (patch)
tree01ce512d599ef41f25498cda0b777f18895440a0 /src/f_op
parent5e7b59f2fe2f0a7e39d2b7ba6f9e19f3bbdf3254 (diff)
player_main cleanup and a few matches
Diffstat (limited to 'src/f_op')
-rw-r--r--src/f_op/f_op_msg_mng.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/f_op/f_op_msg_mng.cpp b/src/f_op/f_op_msg_mng.cpp
index fbfb1695..bb371bc0 100644
--- a/src/f_op/f_op_msg_mng.cpp
+++ b/src/f_op/f_op_msg_mng.cpp
@@ -37,6 +37,8 @@ struct mesg_header : JUTDataFileHeader {
};
struct mesg_entry {
+ // mesg_entry() {} // fixes fopMsgM_selectMessageGet, but messes up getMesgEntry
+
/* 0x00 */ u32 mDataOffs;
/* 0x04 */ u16 mMesgID;
/* 0x06 */ s16 mItemPrice;
@@ -50,7 +52,10 @@ struct mesg_entry {
/* 0x11 */ u8 mInitialSound;
/* 0x12 */ u8 mInitialCamera;
/* 0x13 */ u8 mInitialAnimation;
- /* 0x14 */ u8 field_0x14[4];
+ /* 0x14 */ u8 field_0x14;
+ /* 0x15 */ u8 field_0x15;
+ /* 0x16 */ u8 field_0x16;
+ /* 0x17 */ u8 field_0x17;
};
struct mesg_info : JUTDataBlockHeader {
@@ -593,6 +598,7 @@ u32 fopMsgM_tactMessageSet() {
/* 8002BB78-8002BDBC .text fopMsgM_messageGet__FPcUl */
char* fopMsgM_messageGet(char* dst, u32 msgNo) {
+ /* Nonmatching */
fopMsgM_itemMsgGet_c msgGet;
msgGet.mMsgIdx = 0;
msgGet.mMsgID = 0;
@@ -651,6 +657,7 @@ char* fopMsgM_messageGet(char* dst, u32 msgNo) {
/* 8002BE04-8002C02C .text fopMsgM_passwordGet__FPcUl */
void fopMsgM_passwordGet(char* dst, u32 msgNo) {
+ /* Nonmatching */
fopMsgM_itemMsgGet_c msgGet;
msgGet.mMsgIdx = 0;
msgGet.mMsgID = 0;
@@ -708,6 +715,7 @@ void fopMsgM_passwordGet(char* dst, u32 msgNo) {
/* 8002C02C-8002C568 .text fopMsgM_selectMessageGet__FP7J2DPaneP7J2DPanePcPcPcPcUl */
void fopMsgM_selectMessageGet(J2DPane* param_1, J2DPane* param_2, char* param_3, char* param_4, char* param_5, char* param_6, u32 param_7) {
+ /* Nonmatching */
fopMsgM_msgDataProc_c temp;
fopMsgM_itemMsgGet_c msgGet;
msgGet.mMsgIdx = 0;
@@ -1425,7 +1433,8 @@ mesg_data* fopMsgM_msgGet_c::getMesgData(mesg_header* msg) {
/* 8002E308-8002E378 .text getMesgEntry__16fopMsgM_msgGet_cFP11mesg_header */
mesg_entry fopMsgM_msgGet_c::getMesgEntry(mesg_header* msg) {
- return getMesgInfo(msg)->mEntries[mMsgIdx];
+ mesg_info* info = getMesgInfo(msg);
+ return info->mEntries[mMsgIdx];
}
/* 8002E378-8002E430 .text getMessage__16fopMsgM_msgGet_cFP11mesg_header */
@@ -1490,7 +1499,8 @@ mesg_data* fopMsgM_itemMsgGet_c::getMesgData(mesg_header* msg) {
/* 8002E4DC-8002E54C .text getMesgEntry__20fopMsgM_itemMsgGet_cFP11mesg_header */
mesg_entry fopMsgM_itemMsgGet_c::getMesgEntry(mesg_header* msg) {
- return getMesgInfo(msg)->mEntries[mMsgIdx];
+ mesg_info* info = getMesgInfo(msg);
+ return info->mEntries[mMsgIdx];
}
/* 8002E54C-8002E5FC .text getMessage__20fopMsgM_itemMsgGet_cFP11mesg_header */