mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-30 15:53:50 -04:00
use more inlines and enums
This commit is contained in:
+14
-14
@@ -78,12 +78,12 @@ int dMsgCtrl_c::execute() {
|
||||
} else if (mpMsg == NULL) {
|
||||
mpMsg = fopMsgM_SearchByID(mMsgID);
|
||||
} else {
|
||||
if (mpMsg->mMode == 18) {
|
||||
mpMsg->mMode = 19;
|
||||
if (mpMsg->mStatus == fopMsgStts_BOX_CLOSED_e) {
|
||||
mpMsg->mStatus = fopMsgStts_MSG_DESTROYED_e;
|
||||
dComIfGp_event_reset();
|
||||
}
|
||||
|
||||
return mpMsg->mMode;
|
||||
return mpMsg->mStatus;
|
||||
}
|
||||
|
||||
return -1;
|
||||
@@ -202,12 +202,12 @@ extern JKRHeap* dMsg_getAgbWorkArea();
|
||||
|
||||
/* 800CFB68-800CFC94 .text uploadSelect__7daAgb_cFv */
|
||||
int daAgb_c::uploadSelect() {
|
||||
if (l_msgCtrl.execute() == 14) {
|
||||
if (dComIfGp_checkMesgCancelButton() || (int)l_msgCtrl.mpMsg->mSelectedChoiceIdx != 0) {
|
||||
l_msgCtrl.mpMsg->mMode = 16;
|
||||
if (l_msgCtrl.execute() == fopMsgStts_MSG_DISPLAYED_e) {
|
||||
if (dComIfGp_checkMesgCancelButton() != 0 || l_msgCtrl.getSelectNum() != 0) {
|
||||
l_msgCtrl.setMsgStatus(fopMsgStts_MSG_ENDS_e);
|
||||
mDoGaC_ConnectWake();
|
||||
} else {
|
||||
l_msgCtrl.mpMsg->mMode = 15;
|
||||
l_msgCtrl.setMsgStatus(fopMsgStts_MSG_CONTINUES_e);
|
||||
fopMsgM_messageSet(6); // "Now calling Tingle..."
|
||||
mUploadAction = 3;
|
||||
|
||||
@@ -253,7 +253,7 @@ int daAgb_c::uploadJoyboot2() {
|
||||
field_0x664 = 15;
|
||||
mUploadAction = 6;
|
||||
} else {
|
||||
l_msgCtrl.mpMsg->mMode = 15;
|
||||
l_msgCtrl.setMsgStatus(fopMsgStts_MSG_CONTINUES_e);
|
||||
fopMsgM_messageSet(7); // "An error has occurred."
|
||||
fopMsgM_messageSendOn();
|
||||
mUploadAction = 10;
|
||||
@@ -261,7 +261,7 @@ int daAgb_c::uploadJoyboot2() {
|
||||
} else {
|
||||
field_0x664--;
|
||||
if (field_0x664 == 0) {
|
||||
l_msgCtrl.mpMsg->mMode = 15;
|
||||
l_msgCtrl.setMsgStatus(fopMsgStts_MSG_CONTINUES_e);
|
||||
fopMsgM_messageSet(7); // "An error has occurred."
|
||||
fopMsgM_messageSendOn();
|
||||
mUploadAction = 10;
|
||||
@@ -312,7 +312,7 @@ int daAgb_c::uploadConnect() {
|
||||
dMap_c::mapAGBSendIslandData();
|
||||
} else {
|
||||
mDoGaC_GbaReboot();
|
||||
l_msgCtrl.mpMsg->mMode = 15;
|
||||
l_msgCtrl.setMsgStatus(fopMsgStts_MSG_CONTINUES_e);
|
||||
fopMsgM_messageSet(7); // "An error has occurred."
|
||||
fopMsgM_messageSendOn();
|
||||
mUploadAction = 10;
|
||||
@@ -329,7 +329,7 @@ int daAgb_c::uploadMessageSend() {
|
||||
if (mDoGaC_getDataStatus(0) == 0) {
|
||||
mIsMsgSend = true;
|
||||
if (field_0x67a != 0) {
|
||||
l_msgCtrl.mpMsg->mMode = 15;
|
||||
l_msgCtrl.setMsgStatus(fopMsgStts_MSG_CONTINUES_e);
|
||||
fopMsgM_messageSet(8); // "Tingle appeared on your Game Boy Advance!"
|
||||
fopMsgM_messageSendOn();
|
||||
mUploadAction = 11;
|
||||
@@ -361,8 +361,8 @@ int daAgb_c::uploadRetryWait() {
|
||||
|
||||
/* 800D021C-800D0264 .text uploadMsgEndWait__7daAgb_cFv */
|
||||
int daAgb_c::uploadMsgEndWait() {
|
||||
if (l_msgCtrl.execute() == 14) {
|
||||
l_msgCtrl.mpMsg->mMode = 16;
|
||||
if (l_msgCtrl.execute() == fopMsgStts_MSG_DISPLAYED_e) {
|
||||
l_msgCtrl.setMsgStatus(fopMsgStts_MSG_ENDS_e);
|
||||
}
|
||||
|
||||
return 1;
|
||||
@@ -375,7 +375,7 @@ int daAgb_c::uploadMsgEndTimer() {
|
||||
field_0x664--;
|
||||
|
||||
if (field_0x664 == 0) {
|
||||
l_msgCtrl.mpMsg->mMode = 16;
|
||||
l_msgCtrl.setMsgStatus(fopMsgStts_MSG_ENDS_e);
|
||||
fopMsgM_messageSendOn();
|
||||
} else if (field_0x664 == 30) {
|
||||
field_0x66f = 1;
|
||||
|
||||
@@ -77,7 +77,6 @@ int daBranch_c::solidHeapCB(fopAc_ac_c* i_this) {
|
||||
|
||||
/* 00000248-0000049C .text CreateHeap__10daBranch_cFv */
|
||||
int daBranch_c::CreateHeap() {
|
||||
/* Nonmatching */
|
||||
int bmd[] = { KWOOD_00_BMD_WS, KWOOD_00_BMD_WB };
|
||||
int bck[] = { KWOOD_00_BCK_SWING02, KWOOD_00_BCK_BREAK };
|
||||
int bas[] = { KWOOD_00_BAS_SWING02, KWOOD_00_BAS_BREAK };
|
||||
@@ -86,9 +85,10 @@ int daBranch_c::CreateHeap() {
|
||||
|
||||
for (int i = 0; i < (s32)ARRAY_SIZE(mAnims); i++) {
|
||||
J3DModelData* modelData = static_cast<J3DModelData*>(dComIfG_getObjectIDRes(m_arcname, bmd[i]));
|
||||
static_cast<J3DAnmTransformKey*>(dComIfG_getObjectIDRes(m_arcname, bck[i]));
|
||||
J3DAnmTransformKey* bckData = static_cast<J3DAnmTransformKey*>(dComIfG_getObjectIDRes(m_arcname, bck[i]));
|
||||
|
||||
JUT_ASSERT(0x1CC, modelData != 0);
|
||||
// Bug: They probably meant to assert that bckData isn't null, but accidentally used the array of bck file IDs.
|
||||
JUT_ASSERT(0x1CD, bck != 0);
|
||||
|
||||
mAnims[i] = new mDoExt_McaMorf(
|
||||
|
||||
@@ -19,10 +19,10 @@ static BOOL daKytag06_Execute(kytag06_class* i_this) {
|
||||
f32 time;
|
||||
int date;
|
||||
|
||||
if (g_dComIfG_gameInfo.play.mEvtCtrl.mMode == 0) {
|
||||
if (!dComIfGp_event_runCheck()) {
|
||||
return TRUE;
|
||||
}
|
||||
if(dComIfGp_evmng_startCheck("ARRIVAL_BRK") == 0) {
|
||||
if(!dComIfGp_evmng_startCheck("ARRIVAL_BRK")) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
+16
-16
@@ -1962,10 +1962,10 @@ bool daNpc_Md_c::checkCommandTalk() {
|
||||
|
||||
/* 0000DCB0-0000E410 .text next_msgStatus__10daNpc_Md_cFPUl */
|
||||
u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
u16 msgStatus = dNpcMsgStts_MSG_CONTINUES_e;
|
||||
u16 msgStatus = fopMsgStts_MSG_CONTINUES_e;
|
||||
switch (*pCurrMsgNo) {
|
||||
case 0x5AC:
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x17D5:
|
||||
case 0x1805:
|
||||
@@ -1979,7 +1979,7 @@ u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
break;
|
||||
case 0x17D8:
|
||||
mCurEventMode = 4;
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x17D9:
|
||||
*pCurrMsgNo = 0x1802;
|
||||
@@ -1992,14 +1992,14 @@ u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
break;
|
||||
case 0x17DB:
|
||||
dComIfGs_onEventBit(0x0E02);
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x17DD:
|
||||
*pCurrMsgNo = 0x17DE;
|
||||
break;
|
||||
case 0x17DE:
|
||||
mCurEventMode = 5;
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x17DF:
|
||||
*pCurrMsgNo = 0x17E0;
|
||||
@@ -2015,11 +2015,11 @@ u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
break;
|
||||
case 0x17E4:
|
||||
dComIfGs_onEventBit(0x1101);
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x17E5:
|
||||
dComIfGs_onEventBit(0x1280);
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x17E6:
|
||||
*pCurrMsgNo = 0x17E7;
|
||||
@@ -2046,7 +2046,7 @@ u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
*pCurrMsgNo = 0x17EE;
|
||||
break;
|
||||
case 0x17EE:
|
||||
if (l_msg->mSelectedChoiceIdx == 1) {
|
||||
if (l_msg->mSelectNum == 1) {
|
||||
*pCurrMsgNo = 0x17EF;
|
||||
} else {
|
||||
*pCurrMsgNo = 0x17F0;
|
||||
@@ -2060,7 +2060,7 @@ u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
break;
|
||||
case 0x17F1:
|
||||
mCurEventMode = 7;
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x17F3:
|
||||
*pCurrMsgNo = 0x17F4;
|
||||
@@ -2070,7 +2070,7 @@ u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
// Fall-through
|
||||
case 0x17F8:
|
||||
cLib_onBit(m30F0, 0x40UL);
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x17F7:
|
||||
*pCurrMsgNo = 0x17F8;
|
||||
@@ -2095,7 +2095,7 @@ u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
break;
|
||||
case 0x1801:
|
||||
dComIfGs_onEventBit(0x1102);
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x19C9:
|
||||
*pCurrMsgNo = 0x19ca;
|
||||
@@ -2124,7 +2124,7 @@ u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
case 0x19D1:
|
||||
dComIfGs_onEventBit(0x1402);
|
||||
onSeaTalk();
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x19D2:
|
||||
*pCurrMsgNo = 0x19D3;
|
||||
@@ -2144,7 +2144,7 @@ u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
case 0x19D8:
|
||||
dComIfGs_onEventBit(0x1504);
|
||||
case 0x19D9:
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x19DA:
|
||||
*pCurrMsgNo = 0x19db;
|
||||
@@ -2192,7 +2192,7 @@ u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
// Fall-through
|
||||
case 0x1A01:
|
||||
dComIfGs_onEventBit(0x2C08);
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 0x19FC:
|
||||
*pCurrMsgNo = 0x19FD;
|
||||
@@ -2208,10 +2208,10 @@ u16 daNpc_Md_c::next_msgStatus(u32* pCurrMsgNo) {
|
||||
break;
|
||||
case 0x1A02:
|
||||
dComIfGs_onEventBit(0x3B80);
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
default:
|
||||
msgStatus = dNpcMsgStts_MSG_ENDS_e;
|
||||
msgStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
}
|
||||
return msgStatus;
|
||||
|
||||
@@ -393,21 +393,11 @@ void daObjMknjD::Act_c::setPlayerAngle(int i_staffIdx) {
|
||||
|
||||
/* 00000E84-00000F88 .text talk__Q210daObjMknjD5Act_cFi */
|
||||
u16 daObjMknjD::Act_c::talk(int i_param1) {
|
||||
u16 msgMode = 0xFF;
|
||||
u16 msgStatus = 0xFF;
|
||||
|
||||
if (mMsgPID == fpcM_ERROR_PROCESS_ID_e) {
|
||||
if (i_param1 == 1) {
|
||||
u32 msgId;
|
||||
|
||||
if (m0500 == 0) {
|
||||
g_dComIfG_gameInfo.play.mTactMode = mTactMode;
|
||||
msgId = 0x05B3;
|
||||
}
|
||||
else {
|
||||
msgId = 0x1901;
|
||||
}
|
||||
|
||||
mMsgNo = msgId;
|
||||
mMsgNo = getMsg();
|
||||
}
|
||||
|
||||
mMsgPID = fopMsgM_messageSet(mMsgNo, this);
|
||||
@@ -415,18 +405,18 @@ u16 daObjMknjD::Act_c::talk(int i_param1) {
|
||||
}
|
||||
else {
|
||||
if (mMsgPtr) {
|
||||
msgMode = mMsgPtr->mMode;
|
||||
msgStatus = mMsgPtr->mStatus;
|
||||
|
||||
if (msgMode == 0x0E) {
|
||||
if (g_dComIfG_gameInfo.play.field_0x4949 != 0) {
|
||||
if (msgStatus == fopMsgStts_MSG_DISPLAYED_e) {
|
||||
if (dComIfGp_checkMesgCancelButton() != 0) {
|
||||
m0504 = true;
|
||||
fopMsgM_messageSendOn();
|
||||
}
|
||||
|
||||
mMsgPtr->mMode = 0x10;
|
||||
mMsgPtr->mStatus = fopMsgStts_MSG_ENDS_e;
|
||||
}
|
||||
else if (msgMode == 0x12) {
|
||||
mMsgPtr->mMode = 0x13;
|
||||
else if (msgStatus == fopMsgStts_BOX_CLOSED_e) {
|
||||
mMsgPtr->mStatus = fopMsgStts_MSG_DESTROYED_e;
|
||||
mMsgPID = fpcM_ERROR_PROCESS_ID_e;
|
||||
}
|
||||
}
|
||||
@@ -435,7 +425,7 @@ u16 daObjMknjD::Act_c::talk(int i_param1) {
|
||||
}
|
||||
}
|
||||
|
||||
return msgMode;
|
||||
return msgStatus;
|
||||
}
|
||||
|
||||
/* 00000F88-00001348 .text privateCut__Q210daObjMknjD5Act_cFv */
|
||||
@@ -511,7 +501,7 @@ void daObjMknjD::Act_c::privateCut() {
|
||||
doCutEnd = true;
|
||||
break;
|
||||
case ACT_INPUT:
|
||||
if (talk(1) == 0x12) {
|
||||
if (talk(1) == fopMsgStts_BOX_CLOSED_e) {
|
||||
doCutEnd = true;
|
||||
}
|
||||
break;
|
||||
@@ -541,9 +531,9 @@ void daObjMknjD::Act_c::privateCut() {
|
||||
}
|
||||
break;
|
||||
case ACT_LESSON:
|
||||
u32 talkResult = talk(1);
|
||||
u16 msgStatus = talk(1);
|
||||
|
||||
if (talkResult == 0x12 || talkResult == 0x15) {
|
||||
if (msgStatus == fopMsgStts_BOX_CLOSED_e || msgStatus == fopMsgStts_UNK15_e) {
|
||||
doCutEnd = true;
|
||||
}
|
||||
break;
|
||||
@@ -870,7 +860,7 @@ int daObjMknjD::Act_c::Execute(Mtx** i_mtx) {
|
||||
case 10:
|
||||
privateCut();
|
||||
|
||||
if (g_dComIfG_gameInfo.play.mEvtCtrl.mMode == 0) {
|
||||
if (!dComIfGp_event_runCheck()) {
|
||||
if (checkItemGet(mGiveItemNo, 1) != 0) {
|
||||
m043F = 0;
|
||||
}
|
||||
@@ -885,9 +875,9 @@ int daObjMknjD::Act_c::Execute(Mtx** i_mtx) {
|
||||
m043F = 12;
|
||||
break;
|
||||
case 12:
|
||||
if (talk(1) == 18) {
|
||||
if (talk(1) == fopMsgStts_BOX_CLOSED_e) {
|
||||
player->offPlayerNoDraw();
|
||||
g_dComIfG_gameInfo.play.mEvtCtrl.mEventFlag |= 8;
|
||||
dComIfGp_event_reset();
|
||||
|
||||
if (checkItemGet(mGiveItemNo, 1) != 0) {
|
||||
m043F = 0;
|
||||
|
||||
@@ -212,12 +212,12 @@ namespace daObjPaper {
|
||||
|
||||
/* 00000880-000008DC .text mode_talk2__Q210daObjPaper5Act_cFv */
|
||||
void daObjPaper::Act_c::mode_talk2() {
|
||||
if (mpMsg->mMode == dNpcMsgStts_BOX_CLOSED_e) {
|
||||
mpMsg->mMode = dNpcMsgStts_MSG_DESTROYED_e;
|
||||
if (mpMsg->mStatus == fopMsgStts_BOX_CLOSED_e) {
|
||||
mpMsg->mStatus = fopMsgStts_MSG_DESTROYED_e;
|
||||
mpMsg = 0;
|
||||
mMsgId = fpcM_ERROR_PROCESS_ID_e;
|
||||
|
||||
g_dComIfG_gameInfo.play.mEvtCtrl.mEventFlag |= 8;
|
||||
dComIfGp_event_reset();
|
||||
mode_wait_init();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ void daObjTpost_c::cutDispLetterProc(int staffIdx) {
|
||||
if(mode == 5) {
|
||||
daPy_getPlayerActorClass()->onLetterReadEyeMove();
|
||||
}
|
||||
if(mode == dNpcMsgStts_BOX_CLOSED_e) {
|
||||
if(mode == fopMsgStts_BOX_CLOSED_e) {
|
||||
dComIfGp_evmng_cutEnd(staffIdx);
|
||||
}
|
||||
}
|
||||
@@ -401,7 +401,7 @@ u16 daObjTpost_c::next_msgStatus(u32* msgId) {
|
||||
0x0CEE
|
||||
};
|
||||
|
||||
u16 status = dNpcMsgStts_MSG_CONTINUES_e;
|
||||
u16 status = fopMsgStts_MSG_CONTINUES_e;
|
||||
switch(*msgId) {
|
||||
case 0xCE5:
|
||||
case 0xCE6:
|
||||
@@ -424,7 +424,7 @@ u16 daObjTpost_c::next_msgStatus(u32* msgId) {
|
||||
}
|
||||
else {
|
||||
field_0x8E9 = 1;
|
||||
status = dNpcMsgStts_MSG_ENDS_e;
|
||||
status = fopMsgStts_MSG_ENDS_e;
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -439,7 +439,7 @@ u16 daObjTpost_c::next_msgStatus(u32* msgId) {
|
||||
|
||||
break;
|
||||
case 0xCEF:
|
||||
if(mpCurrMsg->mSelectedChoiceIdx == 0) {
|
||||
if(mpCurrMsg->mSelectNum == 0) {
|
||||
if(dComIfGs_getRupee() >= getSendPrice()) {
|
||||
dComIfGp_setItemRupeeCount(-getSendPrice());
|
||||
dComIfGs_setReserveItemEmpty();
|
||||
@@ -470,7 +470,7 @@ u16 daObjTpost_c::next_msgStatus(u32* msgId) {
|
||||
break;
|
||||
case 0xCF4:
|
||||
case 0xCF8:
|
||||
if(mpCurrMsg->mSelectedChoiceIdx == 0) {
|
||||
if(mpCurrMsg->mSelectNum == 0) {
|
||||
s32 price = 0x0A;
|
||||
if(m_letter[mNumReadable].mEventReg == 0xB203) {
|
||||
price = 0xC9;
|
||||
@@ -478,7 +478,7 @@ u16 daObjTpost_c::next_msgStatus(u32* msgId) {
|
||||
if(dComIfGs_getRupee() >= price) {
|
||||
dComIfGp_setItemRupeeCount(-price);
|
||||
field_0x8E9 = 1;
|
||||
status = dNpcMsgStts_MSG_ENDS_e;
|
||||
status = fopMsgStts_MSG_ENDS_e;
|
||||
}
|
||||
else {
|
||||
*msgId = 0xCF6;
|
||||
@@ -499,17 +499,17 @@ u16 daObjTpost_c::next_msgStatus(u32* msgId) {
|
||||
*msgId = 0xCF7;
|
||||
}
|
||||
else {
|
||||
status = dNpcMsgStts_MSG_ENDS_e;
|
||||
status = fopMsgStts_MSG_ENDS_e;
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
status = dNpcMsgStts_MSG_ENDS_e;
|
||||
status = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
}
|
||||
|
||||
if(mCurrMsgNo == m_letter[mNumReadable].mMsgNo && status == dNpcMsgStts_MSG_ENDS_e) {
|
||||
status = dNpcMsgStts_MSG_DISPLAYED_e;
|
||||
if(mCurrMsgNo == m_letter[mNumReadable].mMsgNo && status == fopMsgStts_MSG_ENDS_e) {
|
||||
status = fopMsgStts_MSG_DISPLAYED_e;
|
||||
}
|
||||
|
||||
return status;
|
||||
@@ -681,7 +681,7 @@ void daObjTpost_c::modeTalkInit() {
|
||||
}
|
||||
|
||||
void daObjTpost_c::modeTalk() {
|
||||
if(talk(1) == dNpcMsgStts_BOX_CLOSED_e) {
|
||||
if(talk(1) == fopMsgStts_BOX_CLOSED_e) {
|
||||
if(field_0x8E9) {
|
||||
modeProc(PROC_INIT, 3);
|
||||
field_0x8E9 = 0;
|
||||
@@ -745,7 +745,7 @@ void daObjTpost_c::modeTalkXY() {
|
||||
bool stopped = true;
|
||||
if (!morf->mFrameCtrl.checkState(J3DFrameCtrl::STATE_STOP_E) && morf->mFrameCtrl.getRate() != 0.0f) { stopped = false; }
|
||||
if (stopped) {
|
||||
if(cLib_calcTimer(&field_0x8DC) == 0 && talk(1) == dNpcMsgStts_BOX_CLOSED_e) {
|
||||
if(cLib_calcTimer(&field_0x8DC) == 0 && talk(1) == fopMsgStts_BOX_CLOSED_e) {
|
||||
modeProc(PROC_INIT, 0);
|
||||
dComIfGp_event_reset();
|
||||
field_0x8F5 = 0;
|
||||
@@ -846,7 +846,7 @@ bool daObjTpost_c::_execute() {
|
||||
modeProc(PROC_EXEC, 5);
|
||||
dBgS* bgs = dComIfG_Bgsp();
|
||||
|
||||
if(g_dComIfG_gameInfo.play.mEvtCtrl.mMode != 0 && mEventCut.cutProc() == false) {
|
||||
if(dComIfGp_event_runCheck() && !mEventCut.cutProc()) {
|
||||
cutProc();
|
||||
}
|
||||
eventOrder();
|
||||
|
||||
@@ -158,20 +158,20 @@ static BOOL daTag_Msg_actionEvent(daTag_Msg_c* a_this) {
|
||||
break;
|
||||
case 3:
|
||||
JUT_ASSERT(0x13F, l_msg);
|
||||
if (l_msg->mMode == 6) {
|
||||
if (l_msg->mStatus == fopMsgStts_MSG_TYPING_e) {
|
||||
msg_mode++;
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
JUT_ASSERT(0x145, l_msg);
|
||||
if (l_msg->mMode == 0xe) {
|
||||
if (l_msg->mStatus == fopMsgStts_MSG_DISPLAYED_e) {
|
||||
msg_mode++;
|
||||
l_msg->mMode = 0x10;
|
||||
l_msg->mStatus = fopMsgStts_MSG_ENDS_e;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (l_msg != NULL && l_msg->mMode == 0x12) {
|
||||
l_msg->mMode = 0x13;
|
||||
if (l_msg != NULL && l_msg->mStatus == fopMsgStts_BOX_CLOSED_e) {
|
||||
l_msg->mStatus = fopMsgStts_MSG_DESTROYED_e;
|
||||
dComIfGp_event_reset();
|
||||
if (a_this->getMessage() == 0x1902) {
|
||||
daPy_getPlayerLinkActorClass()->offPlayerNoDraw();
|
||||
|
||||
@@ -135,13 +135,13 @@ void dComIfG_play_c::itemInit() {
|
||||
field_0x4946 = 0;
|
||||
field_0x4947 = 0;
|
||||
field_0x4948 = 0;
|
||||
field_0x4949 = 0;
|
||||
mMesgCancelButton = 0;
|
||||
|
||||
for (int i = 0; i < 6; i++) {
|
||||
field_0x494a[i] = 0;
|
||||
}
|
||||
|
||||
mTactMode = 0;
|
||||
mMelodyNum = 0;
|
||||
field_0x4951 = 0;
|
||||
field_0x4952 = 0;
|
||||
field_0x4953 = 0;
|
||||
|
||||
+1
-1
@@ -598,7 +598,7 @@ dStage_Event_dt_c* dEvt_control_c::nextStageEventDt(void* idxp) {
|
||||
int dEvt_control_c::getPId(void* ac) {
|
||||
if (ac == NULL)
|
||||
return -1;
|
||||
return fpcM_GetID(ac);
|
||||
return fopAcM_GetID(ac);
|
||||
}
|
||||
|
||||
/* 800715DC-8007160C .text convPId__14dEvt_control_cFUi */
|
||||
|
||||
@@ -291,11 +291,11 @@ void dEvDtStaff_c::specialProcMessage() {
|
||||
case 3: // FINISH
|
||||
case 5: // END
|
||||
JUT_ASSERT(0x1D8, l_msg);
|
||||
l_msg->mMode = 0x10;
|
||||
l_msg->mStatus = fopMsgStts_MSG_ENDS_e;
|
||||
break;
|
||||
case 4: // CONTINUE
|
||||
JUT_ASSERT(0x1DC, l_msg);
|
||||
l_msg->mMode = 0xF;
|
||||
l_msg->mStatus = fopMsgStts_MSG_CONTINUES_e;
|
||||
idata = dComIfGp_evmng_getMyIntegerP(staffIdx, "msgNo");
|
||||
JUT_ASSERT(0x1DF, idata);
|
||||
l_msgNo = *idata;
|
||||
@@ -339,7 +339,7 @@ void dEvDtStaff_c::specialProcMessage() {
|
||||
break;
|
||||
case 2: // PUSHBUTTON
|
||||
JUT_ASSERT(0x209, l_msg);
|
||||
if (l_msg->mMode == 0xE) {
|
||||
if (l_msg->mStatus == fopMsgStts_MSG_DISPLAYED_e) {
|
||||
dComIfGp_evmng_cutEnd(staffIdx);
|
||||
}
|
||||
break;
|
||||
@@ -347,8 +347,8 @@ void dEvDtStaff_c::specialProcMessage() {
|
||||
case 6: // DELETE
|
||||
if (!l_msg) {
|
||||
dComIfGp_evmng_cutEnd(staffIdx);
|
||||
} else if (l_msg->mMode == 0x12) {
|
||||
l_msg->mMode = 0x13;
|
||||
} else if (l_msg->mStatus == fopMsgStts_BOX_CLOSED_e) {
|
||||
l_msg->mStatus = fopMsgStts_MSG_DESTROYED_e;
|
||||
l_msgId = fpcM_ERROR_PROCESS_ID_e;
|
||||
l_msg = NULL;
|
||||
dComIfGp_evmng_cutEnd(staffIdx);
|
||||
@@ -358,9 +358,9 @@ void dEvDtStaff_c::specialProcMessage() {
|
||||
dComIfGp_evmng_cutEnd(staffIdx);
|
||||
break;
|
||||
case 5: // END
|
||||
switch (l_msg->mMode) {
|
||||
case 0x11:
|
||||
case 0x12:
|
||||
switch (l_msg->mStatus) {
|
||||
case fopMsgStts_BOX_CLOSING_e:
|
||||
case fopMsgStts_BOX_CLOSED_e:
|
||||
dComIfGp_evmng_cutEnd(staffIdx);
|
||||
break;
|
||||
}
|
||||
|
||||
+6
-6
@@ -661,15 +661,15 @@ u16 fopNpc_npc_c::talk(int param_1) {
|
||||
}
|
||||
else {
|
||||
if(mpCurrMsg) {
|
||||
mode = mpCurrMsg->mMode;
|
||||
if(mode == dNpcMsgStts_MSG_DISPLAYED_e) {
|
||||
mpCurrMsg->mMode = next_msgStatus(&mCurrMsgNo);
|
||||
if(mpCurrMsg->mMode == dNpcMsgStts_MSG_CONTINUES_e) {
|
||||
mode = mpCurrMsg->mStatus;
|
||||
if(mode == fopMsgStts_MSG_DISPLAYED_e) {
|
||||
mpCurrMsg->mStatus = next_msgStatus(&mCurrMsgNo);
|
||||
if(mpCurrMsg->mStatus == fopMsgStts_MSG_CONTINUES_e) {
|
||||
fopMsgM_messageSet(mCurrMsgNo);
|
||||
}
|
||||
}
|
||||
else if (mode == dNpcMsgStts_BOX_CLOSED_e) {
|
||||
mpCurrMsg->mMode = dNpcMsgStts_MSG_DESTROYED_e;
|
||||
else if (mode == fopMsgStts_BOX_CLOSED_e) {
|
||||
mpCurrMsg->mStatus = fopMsgStts_MSG_DESTROYED_e;
|
||||
mCurrMsgBsPcId = fpcM_ERROR_PROCESS_ID_e;
|
||||
}
|
||||
|
||||
|
||||
@@ -590,7 +590,7 @@ void dNpc_EventCut_c::cutTalkMsgProc() {
|
||||
}
|
||||
else {
|
||||
u16 status = mpTalkActor->talk(0);
|
||||
if(status == dNpcMsgStts_BOX_CLOSED_e) {
|
||||
if(status == fopMsgStts_BOX_CLOSED_e) {
|
||||
field_0x52 = 0;
|
||||
dComIfGp_evmng_cutEnd(mEvtStaffId);
|
||||
}
|
||||
|
||||
+4
-4
@@ -242,10 +242,10 @@ void dScnPly_msg_HIO_c::dScnPly_msg_HIO_messageProc() {
|
||||
} else {
|
||||
msg_class* msg_p = fopMsgM_SearchByID(field_0x10);
|
||||
if (msg_p != NULL) {
|
||||
if (msg_p->mMode == 14) {
|
||||
msg_p->mMode = 16;
|
||||
} else if (msg_p->mMode == 18) {
|
||||
msg_p->mMode = 19;
|
||||
if (msg_p->mStatus == fopMsgStts_MSG_DISPLAYED_e) {
|
||||
msg_p->mStatus = fopMsgStts_MSG_ENDS_e;
|
||||
} else if (msg_p->mStatus == fopMsgStts_BOX_CLOSED_e) {
|
||||
msg_p->mStatus = fopMsgStts_MSG_DESTROYED_e;
|
||||
field_0x10 = fpcM_ERROR_PROCESS_ID_e;
|
||||
field_0x06 = 0;
|
||||
mID++;
|
||||
|
||||
+1
-1
@@ -1304,7 +1304,7 @@ BOOL dShop_now_triggercheck(msg_class* msg, STControl* stickControl, ShopItems_c
|
||||
}
|
||||
}
|
||||
|
||||
msg->mMode = 0xF;
|
||||
msg->mStatus = fopMsgStts_MSG_CONTINUES_e;
|
||||
fopMsgM_messageSet(*pMsgID);
|
||||
fopMsgM_messageSendOn();
|
||||
shopItems->mSelectedItemIdx = nextIdx;
|
||||
|
||||
Reference in New Issue
Block a user