diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2025-05-17 09:56:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-17 19:56:20 +0300 |
| commit | d1a5f8d71c6660b3f06781ef56f7f0cdec663cba (patch) | |
| tree | c87f8998e3aa956f6dba040cea296bf812af720c /include/d | |
| parent | 165095b3d9cbb89b5a2e40a67b1f3c5c223ba763 (diff) | |
cleanup d_msg_flow (#2447)
Diffstat (limited to 'include/d')
| -rw-r--r-- | include/d/actor/d_a_midna.h | 4 | ||||
| -rw-r--r-- | include/d/actor/d_a_myna.h | 4 | ||||
| -rw-r--r-- | include/d/d_com_static.h | 2 | ||||
| -rw-r--r-- | include/d/d_meter2_info.h | 14 | ||||
| -rw-r--r-- | include/d/d_msg_flow.h | 155 | ||||
| -rw-r--r-- | include/d/d_msg_object.h | 42 | ||||
| -rw-r--r-- | include/d/d_save.h | 2 | ||||
| -rw-r--r-- | include/d/d_stage.h | 4 |
8 files changed, 147 insertions, 80 deletions
diff --git a/include/d/actor/d_a_midna.h b/include/d/actor/d_a_midna.h index 98f85830a4..2306171295 100644 --- a/include/d/actor/d_a_midna.h +++ b/include/d/actor/d_a_midna.h @@ -279,8 +279,8 @@ public: void changeDemoMode(u32 mode) { mDemoMode = mode; } BOOL checkPortalObjCall() { return checkStateFlg0(FLG0_PORTAL_OBJ_CALL); } BOOL checkNoHairScale() const { return checkStateFlg0(FLG0_NO_HAIR_SCALE); } - BOOL checkNpcNear() { return checkStateFlg0(FLG0_NPC_NEAR); } - BOOL checkNpcFar() { return checkStateFlg0(FLG0_NPC_FAR); } + BOOL checkNpcNear() const { return checkStateFlg0(FLG0_NPC_NEAR); } + BOOL checkNpcFar() const { return checkStateFlg0(FLG0_NPC_FAR); } u32 checkNoDraw() const { return checkStateFlg0(FLG0_NO_DRAW); } BOOL checkNoInput() const { return checkStateFlg0(FLG0_NO_INPUT); } BOOL checkWolfNoPos() const { return checkStateFlg0(FLG0_WOLF_NO_POS); } diff --git a/include/d/actor/d_a_myna.h b/include/d/actor/d_a_myna.h index 4ea9b699d0..bb4d25b477 100644 --- a/include/d/actor/d_a_myna.h +++ b/include/d/actor/d_a_myna.h @@ -119,12 +119,14 @@ public: /* 8094A608 */ void setDefaultWaitAnime(u8); /* 8094AA20 */ virtual ~daMyna_c() {} - daMyna_c(){}; + daMyna_c() {} void onEventFlag(u8 flag) { field_0x92F |= (1 << flag); } void offEventFlag(u8 flag) { field_0x92F &= ~(1 << flag); } bool isEventFlag(u8 flag) { return field_0x92F & (1 << flag); } + fopAc_ac_c* getSpeakActorPtr() { return field_0x828; } + typedef void (daMyna_c::*ProcFunc)(); typedef int (daMyna_c::*BaseMotionFunc)(int); diff --git a/include/d/d_com_static.h b/include/d/d_com_static.h index 9bb8e83ca2..84277ff2f6 100644 --- a/include/d/d_com_static.h +++ b/include/d/d_com_static.h @@ -7,7 +7,7 @@ u8 daNpcKakashi_getSwdTutorialStep(); void daNpcKakashi_setSwdTutorialStep(u8 iEvtNum); bool daNpcKakashi_getSwdTutorialResult(); BOOL daNpcKakashi_chkSwdTutorialStage(); -int daNpcKakashi_getSuccessCount(); +u8 daNpcKakashi_getSuccessCount(); void daNpcKakashi_clrSuccessCount(); int daNpcMsg_setEvtNum(u8 iEvtNum); diff --git a/include/d/d_meter2_info.h b/include/d/d_meter2_info.h index 3d8e2b4c81..07af53d474 100644 --- a/include/d/d_meter2_info.h +++ b/include/d/d_meter2_info.h @@ -152,10 +152,10 @@ public: u8 getGameOverType() { return mGameOverType; } void setGameOverType(u8 i_gameoverType) { mGameOverType = i_gameoverType; } void setMsgKeyWaitTimer(s16 i_waitTimer) { mMsgKeyWaitTimer = i_waitTimer; } - u32 getMsgTimeMs() { return mMsgTimeMs; } - void setMsgTimeMs(u32 msgTime) { mMsgTimeMs = msgTime; } + s32 getMsgTimeMs() { return mMsgTimeMs; } + void setMsgTimeMs(s32 msgTime) { mMsgTimeMs = msgTime; } void setTimeMs(s32 i_time) { mTimeMs = i_time; } - u32 getTimeMs() { return mTimeMs; } + s32 getTimeMs() { return mTimeMs; } u8 getNowCount() { return mNowCount; } int getMaxCount() { return mMaxCount; } void setScopeZoomPointer(u8 param_0) { mScopeZoomPointer = param_0; } @@ -220,7 +220,7 @@ public: /* 0x7C */ f32 m2DPosV; /* 0x80 */ f32 unk128; /* 0x84 */ s32 mTimeMs; - /* 0x88 */ u32 mMsgTimeMs; + /* 0x88 */ s32 mMsgTimeMs; /* 0x8C */ s32 mMeterString; /* 0x90 */ u32 mTempBits; /* 0x94 */ s16 mMsgKeyWaitTimer; @@ -619,15 +619,15 @@ inline void dMeter2Info_setMsgKeyWaitTimer(s16 i_waitTimer) { g_meter2_info.setMsgKeyWaitTimer(i_waitTimer); } -inline u32 dMeter2Info_getMsgTimeMs() { +inline s32 dMeter2Info_getMsgTimeMs() { return g_meter2_info.getMsgTimeMs(); } -inline u32 dMeter2Info_getTimeMs() { +inline s32 dMeter2Info_getTimeMs() { return g_meter2_info.getTimeMs(); } -inline void dMeter2Info_setMsgTimeMs(u32 msgTime) { +inline void dMeter2Info_setMsgTimeMs(s32 msgTime) { g_meter2_info.setMsgTimeMs(msgTime); } diff --git a/include/d/d_msg_flow.h b/include/d/d_msg_flow.h index b50e48c06c..ceae7d62d5 100644 --- a/include/d/d_msg_flow.h +++ b/include/d/d_msg_flow.h @@ -3,6 +3,18 @@ #include "dolphin/types.h" +enum { + NODETYPE_MESSAGE_e = 1, + NODETYPE_BRANCH_e = 2, + NODETYPE_EVENT_e = 3, +}; + +enum { + SELTYPE_NONE_e = 0, + SELTYPE_VERTICAL_e = 1, + SELTYPE_HORIZONTAL_e = 2, +}; + class fopAc_ac_c; class msg_class; @@ -11,25 +23,27 @@ struct mesg_flow_node { /* 0x00 */ u8 type; /* 0x01 */ u8 field_0x1; /* 0x02 */ u16 msg_index; - /* 0x04 */ u8 params[4]; + /* 0x04 */ u16 next_node_idx; + /* 0x06 */ u16 unk_0x6; }; // Size: 0x8 struct mesg_flow_node_branch { /* 0x00 */ u8 type; /* 0x01 */ u8 field_0x1; - /* 0x02 */ u16 msg_index; - /* 0x04 */ u16 params[2]; + /* 0x02 */ u16 query_idx; + /* 0x04 */ u16 param; + /* 0x06 */ u16 next_node_idx; }; struct mesg_flow_node_event { /* 0x00 */ u8 type; - /* 0x01 */ u8 field_0x1; - /* 0x02 */ u16 msg_index; + /* 0x01 */ u8 event_idx; + /* 0x02 */ u16 next_node_idx; /* 0x04 */ u8 params[4]; }; // Size: 0x8 class dMsgFlow_c; -typedef int (dMsgFlow_c::*queryFunc)(mesg_flow_node_branch*, fopAc_ac_c*, int); +typedef u16 (dMsgFlow_c::*queryFunc)(mesg_flow_node_branch*, fopAc_ac_c*, int); typedef int (dMsgFlow_c::*eventFunc)(mesg_flow_node_event*, fopAc_ac_c*); class dMsgFlow_c { @@ -60,59 +74,59 @@ public: /* 8024B0F0 */ int getParam(u16*, u16*, u8*); /* 8024B108 */ int getParam(u8*, u8*); /* 8024B130 */ int getParam(u8*); - /* 8024B138 */ int query001(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B180 */ int query002(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B208 */ int query003(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B250 */ int query004(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B2C0 */ int query005(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B2F8 */ int query006(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B32C */ int query007(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B45C */ int query008(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B4A4 */ int query009(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B4D0 */ int query010(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B504 */ int query011(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B54C */ int query012(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B584 */ int query013(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B5BC */ int query014(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B5F4 */ int query015(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B62C */ int query016(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B664 */ int query017(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B6A8 */ int query018(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B6EC */ int query019(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B730 */ int query020(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B774 */ int query021(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B8E4 */ int query022(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B918 */ int query023(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B954 */ int query024(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B974 */ int query025(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B9BC */ int query026(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024B9E8 */ int query027(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BA4C */ int query028(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BAA0 */ int query029(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BAE0 */ int query030(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BB18 */ int query031(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BB74 */ int query032(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BB9C */ int query033(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BBE4 */ int query034(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BC14 */ int query035(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BC3C */ int query036(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BC80 */ int query037(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BCC4 */ int query038(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BDB0 */ int query039(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BE4C */ int query040(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BF50 */ int query041(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024BFEC */ int query042(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024C0A8 */ int query043(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024C144 */ int query044(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024C18C */ int query045(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024C218 */ int query046(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024C248 */ int query047(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024C250 */ int query048(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024C2A0 */ int query049(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024C2FC */ int query050(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024C340 */ int query051(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024C3A0 */ int query052(mesg_flow_node_branch*, fopAc_ac_c*, int); - /* 8024C3D4 */ int query053(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B138 */ u16 query001(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B180 */ u16 query002(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B208 */ u16 query003(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B250 */ u16 query004(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B2C0 */ u16 query005(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B2F8 */ u16 query006(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B32C */ u16 query007(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B45C */ u16 query008(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B4A4 */ u16 query009(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B4D0 */ u16 query010(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B504 */ u16 query011(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B54C */ u16 query012(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B584 */ u16 query013(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B5BC */ u16 query014(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B5F4 */ u16 query015(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B62C */ u16 query016(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B664 */ u16 query017(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B6A8 */ u16 query018(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B6EC */ u16 query019(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B730 */ u16 query020(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B774 */ u16 query021(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B8E4 */ u16 query022(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B918 */ u16 query023(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B954 */ u16 query024(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B974 */ u16 query025(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B9BC */ u16 query026(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024B9E8 */ u16 query027(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BA4C */ u16 query028(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BAA0 */ u16 query029(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BAE0 */ u16 query030(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BB18 */ u16 query031(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BB74 */ u16 query032(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BB9C */ u16 query033(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BBE4 */ u16 query034(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BC14 */ u16 query035(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BC3C */ u16 query036(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BC80 */ u16 query037(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BCC4 */ u16 query038(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BDB0 */ u16 query039(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BE4C */ u16 query040(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BF50 */ u16 query041(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024BFEC */ u16 query042(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024C0A8 */ u16 query043(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024C144 */ u16 query044(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024C18C */ u16 query045(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024C218 */ u16 query046(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024C248 */ u16 query047(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024C250 */ u16 query048(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024C2A0 */ u16 query049(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024C2FC */ u16 query050(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024C340 */ u16 query051(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024C3A0 */ u16 query052(mesg_flow_node_branch*, fopAc_ac_c*, int); + /* 8024C3D4 */ u16 query053(mesg_flow_node_branch*, fopAc_ac_c*, int); /* 8024C3FC */ int event000(mesg_flow_node_event*, fopAc_ac_c*); /* 8024C488 */ int event001(mesg_flow_node_event*, fopAc_ac_c*); /* 8024C514 */ int event002(mesg_flow_node_event*, fopAc_ac_c*); @@ -157,9 +171,15 @@ public: /* 8024DA78 */ int event041(mesg_flow_node_event*, fopAc_ac_c*); /* 8024DAA8 */ int event042(mesg_flow_node_event*, fopAc_ac_c*); + void initWord(fopAc_ac_c*, const char*, u8, int, fopAc_ac_c**); + +#ifdef DEBUG + void dbgPrint(); +#endif + u8 isSelectMessage() { return mSelectMessage; } void onNonStopJunpFlowFlag() { mNonStopJunpFlowFlag = 1; } - int getSelectNum() { return query005(NULL, NULL, 0); } + u16 getSelectNum() { return query005(NULL, NULL, 0); } s16 getChoiceNo() { return mChoiceNo; } void setMsg(u32 msg) { mMsg = msg; } bool checkEndFlow() { return field_0x26 == 1; } @@ -170,13 +190,16 @@ public: private: /* 0x04 */ u8* mFlow_p; /* 0x08 */ u8* mLabelInfo_p; - /* 0x0C */ mesg_flow_node* mFlowNodeTBL; - /* 0x10 */ u16 field_0x10; + /* 0x0C */ union mesg_flow { + mesg_flow_node message; + mesg_flow_node_branch branch; + mesg_flow_node_event event; + }* mFlowNodeTBL; + /* 0x10 */ u16 mNodeIdx; /* 0x12 */ u16 field_0x12; - /* 0x14 */ u16* field_0x14; + /* 0x14 */ u16* mFlowIdxTBL; /* 0x18 */ u16* field_0x18; /* 0x1C */ u16 mFlow; - /* 0x1E */ u8 field_0x1e[2]; /* 0x20 */ u32 mMsg; /* 0x24 */ u8 mSelectMessage; /* 0x25 */ u8 field_0x25; @@ -189,14 +212,14 @@ private: /* 0x34 */ int field_0x34; /* 0x38 */ u16 field_0x38; /* 0x3A */ u16 mChoiceNo; - /* 0x3C */ s32 field_0x3c; + /* 0x3C */ s32 mTimer; /* 0x40 */ u8 field_0x40; /* 0x41 */ u8 field_0x41; /* 0x42 */ u8 field_0x42; /* 0x43 */ u8 field_0x43; /* 0x44 */ u8 field_0x44; /* 0x45 */ u8 field_0x45; - /* 0x46 */ u8 field_0x46; + /* 0x46 */ u8 mSelType; /* 0x47 */ u8 field_0x47; /* 0x48 */ u8 mNonStopJunpFlowFlag; }; diff --git a/include/d/d_msg_object.h b/include/d/d_msg_object.h index d944340916..611e9b0d36 100644 --- a/include/d/d_msg_object.h +++ b/include/d/d_msg_object.h @@ -239,6 +239,16 @@ public: u8 getArrowNumLocal() { return mArrowNum; } u8 isNoDemoFlag() { return mNoDemoFlag; } + static void setWord(const char* i_word); + void setWordLocal(const char* i_word) { + strcpy(mWord, i_word); + } + + static void setSelectWord(int i_no, const char* i_word); + void setSelectWordLocal(int i_no, const char* i_word) { + strcpy(mSelectWord[i_no], i_word); + } + jmessage_tSequenceProcessor* getSequenceProcessor() { return mpSeqProc; } /* 0x0FC */ int field_0xfc; @@ -401,7 +411,7 @@ inline void dMsgObject_setShopWaitTimer(u8 timer) { } inline void dMsgObject_changeFlowGroup(long flow) { - dMsgObject_c::changeFlowGroup(flow); + dMsgObject_getMsgObjectClass()->changeFlowGroup(flow); } inline void dMsgObject_setTalkActor(fopAc_ac_c* actor) { @@ -505,6 +515,34 @@ inline void dMsgObject_setPortalMessageID(u16 id) { dMsgObject_getMsgObjectClass()->setPortalMessageID(id); } +inline void dMsgObject_setWord(const char* i_word) { + dMsgObject_getMsgObjectClass()->setWord(i_word); +} + +inline void dMsgObject_setSelectWord(int i_no, const char* i_word) { + dMsgObject_getMsgObjectClass()->setSelectWord(i_no, i_word); +} + +inline u8* dMsgObject_getMsgDtPtr() { + return (u8*)dMsgObject_getMsgObjectClass()->getMsgDtPtr(); +} + +inline void dMsgObject_setSelectCancelPos(u8 param_0) { + dMsgObject_getMsgObjectClass()->setSelectCancelPos(param_0); +} + +inline void dMsgObject_setSelectCursorPos(u8 param_0) { + dMsgObject_getMsgObjectClass()->setSelectCursorPos(param_0); +} + +inline u8 dMsgObject_getSelectBombBagID() { + dMsgObject_getMsgObjectClass()->getSelectBombBagID(); +} + +inline s16 dMsgObject_getSelectBombPrice() { + dMsgObject_getMsgObjectClass()->getSelectBombPrice(); +} + class dMsgObject_HowlHIO_c { public: /* 80232AEC */ dMsgObject_HowlHIO_c(); @@ -681,7 +719,7 @@ public: /* 0x31A */ s16 mHaloDelayFrame; /* 0x31C */ s16 mHaloDelayFrameSpirit; /* 0x31E */ bool mSaveSeqMsgDebug; - /* 0x31F */ bool mMsgDebug; + /* 0x31F */ u8 mMsgDebug; /* 0x320 */ bool mTextColorDebug; /* 0x321 */ u8 mTextColorUpperR[9]; // Default, Red, Green, Blue, Yellow, L.Blue, Purple, Grey, Orange, diff --git a/include/d/d_save.h b/include/d/d_save.h index 3161dce6ad..30ac303aa2 100644 --- a/include/d/d_save.h +++ b/include/d/d_save.h @@ -394,7 +394,7 @@ public: void offCollectMirror(u8 i_item); BOOL isCollectMirror(u8 i_item) const; - u8 getPohNum() { return mPohNum; } + u8 getPohNum() const { return mPohNum; } private: /* 0x0 */ u8 mItem[8]; diff --git a/include/d/d_stage.h b/include/d/d_stage.h index e5dc1e0ff5..8cf0ce60bf 100644 --- a/include/d/d_stage.h +++ b/include/d/d_stage.h @@ -1416,6 +1416,10 @@ inline u8 dStage_FileList_dt_GRASSLIGHT(dStage_FileList_dt_c* p_fList) { return (p_fList->mParameters >> 7) & 0xFF; } +inline u16 dStage_FileList_dt_GetMsg(dStage_FileList_dt_c* p_fList) { + return p_fList->mMsg; +} + inline f32 dStage_FileList2_dt_GetLeftRmX(dStage_FileList2_dt_c* p_fList2) { return p_fList2->mLeftRmX; } |
