Standardize process ID type to be uint

This commit is contained in:
LagoLunatic
2024-03-11 19:03:47 -04:00
parent d0e8844b4b
commit 0dd3f6e47c
69 changed files with 178 additions and 176 deletions
+4 -4
View File
@@ -148,7 +148,7 @@ void daGhostship_c::modePathMoveInit() {
/* 0000077C-000007D0 .text modePathMove__13daGhostship_cFv */
void daGhostship_c::modePathMove() {
if(pathId != 0xFF) {
if(mPathNo != 0xFF) {
mPathSpeed = 10.0f;
pathMove();
}
@@ -209,8 +209,8 @@ void daGhostship_c::createInit() {
dLib_setCirclePath(&mPaths[i]);
}
if(pathId != 0xFF) {
mPath = dPath_GetRoomPath(pathId, fopAcM_GetRoomNo(this));
if(mPathNo != 0xFF) {
mPath = dPath_GetRoomPath(mPathNo, fopAcM_GetRoomNo(this));
modePathMoveInit();
}
else {
@@ -246,7 +246,7 @@ void daGhostship_c::createInit() {
/* 00000C78-00000C8C .text getArg__13daGhostship_cFv */
void daGhostship_c::getArg() {
u32 param = fopAcM_GetParam(this);
pathId = fopAcM_GetParamBit(param, 0x10, 8);
mPathNo = fopAcM_GetParamBit(param, 0x10, 8);
moonPhase = fopAcM_GetParamBit(param, 0, 8);
}
+1 -1
View File
@@ -957,7 +957,7 @@ void daNpc_Ji1_c::createItem() {
dComIfGs_onEventBit(0xF10);
}
u32 itemPID = fopAcM_createItemForPresentDemo(&current.pos, itemNo, 0, -1, current.roomNo);
uint itemPID = fopAcM_createItemForPresentDemo(&current.pos, itemNo, 0, -1, current.roomNo);
if(itemPID != fpcM_ERROR_PROCESS_ID_e) {
dComIfGp_event_setItemPartnerId(itemPID);
}
+6 -6
View File
@@ -2056,10 +2056,10 @@ BOOL daNpc_Md_c::actionLookDown(int) {
/* 0000CB8C-0000CC10 .text talk_init__10daNpc_Md_cFv */
BOOL daNpc_Md_c::talk_init() {
if (l_msgId == fpcM_ERROR_PROCESS_ID_e) {
if (mMsgId == 0x5AC) {
if (mMsgNo == 0x5AC) {
l_msgId = fopMsgM_tactMessageSet();
} else {
l_msgId = fopMsgM_messageSet(mMsgId, this);
l_msgId = fopMsgM_messageSet(mMsgNo, this);
}
} else {
l_msg = fopMsgM_SearchByID(l_msgId);
@@ -2075,9 +2075,9 @@ BOOL daNpc_Md_c::talk(int r4) {
u16 msgStatus = l_msg->mStatus;
u8 msgAnmAtr = dComIfGp_getMesgAnimeAttrInfo();
if (msgStatus == fopMsgStts_MSG_DISPLAYED_e) {
l_msg->mStatus = next_msgStatus(&mMsgId);
l_msg->mStatus = next_msgStatus(&mMsgNo);
if (l_msg->mStatus == fopMsgStts_MSG_CONTINUES_e) {
fopMsgM_messageSet(mMsgId);
fopMsgM_messageSet(mMsgNo);
m313A = 0;
}
} else if (msgStatus == fopMsgStts_UNK15_e) {
@@ -2093,7 +2093,7 @@ BOOL daNpc_Md_c::talk(int r4) {
}
}
} else if (msgStatus == fopMsgStts_MSG_TYPING_e) {
if (m313A == 0 && !fopAcM_checkCarryNow(this) && !isShipRide() && mMsgId != 0x05AC) {
if (m313A == 0 && !fopAcM_checkCarryNow(this) && !isShipRide() && mMsgNo != 0x05AC) {
int anmType = getAnmType(msgAnmAtr);
if (anmType >= 0) {
setAnm(anmType);
@@ -2105,7 +2105,7 @@ BOOL daNpc_Md_c::talk(int r4) {
return TRUE;
}
if (!fopAcM_checkCarryNow(this) && !isShipRide() && mMsgId != 0x05AC) {
if (!fopAcM_checkCarryNow(this) && !isShipRide() && mMsgNo != 0x05AC) {
if (m313A == 1 && msgAnmAtr == 0x14 && m312A != 0) {
setAnm(0x1B);
m313A = 1;
+1 -1
View File
@@ -166,7 +166,7 @@ void daObjTpost_c::cutPresentStart(int staffIdx) {
/* 000003D8-00000474 .text cutPresentProc__12daObjTpost_cFi */
void daObjTpost_c::cutPresentProc(int staffIdx) {
u32 itemPID = fopAcM_createItemForPresentDemo(&current.pos, m_letter[mNumReadable].mItemNo);
uint itemPID = fopAcM_createItemForPresentDemo(&current.pos, m_letter[mNumReadable].mItemNo);
if(itemPID != fpcM_ERROR_PROCESS_ID_e) {
dComIfGp_event_setItemPartnerId(itemPID);
dComIfGp_evmng_cutEnd(staffIdx);
+2 -2
View File
@@ -121,7 +121,7 @@ BOOL daPy_lk_c::procFoodThrow() {
dComIfGp_evmng_cutEnd(mStaffIdx);
} else {
dComIfGp_event_reset();
u32 playerPID = fopAcM_GetID(this);
uint playerPID = fopAcM_GetID(this);
dCam_getBody()->EndEventCamera(playerPID);
endDemoMode();
}
@@ -212,7 +212,7 @@ BOOL daPy_lk_c::procFoodSet() {
} else if (m34D0 < 0) {
dComIfGp_event_reset();
deleteEquipItem(FALSE);
u32 playerPID = fopAcM_GetID(this);
uint playerPID = fopAcM_GetID(this);
dCam_getBody()->EndEventCamera(playerPID);
endDemoMode();
} else if (m34D0 == 0) {
+1 -1
View File
@@ -343,7 +343,7 @@ BOOL daPy_lk_c::procTactPlay_init(s32 r27, int r30, int r31) {
stage_stag_info_class* stag_info = dComIfGp_getStageStagInfo();
if (dStage_stagInfo_GetSTType(stag_info) == dStageType_SEA_e && m34CC != 1 && r30 != 0) {
daShip_c* ship = dComIfGp_getShipActor();
u32 warpID = fopAcM_create(PROC_TORNADO, 1, &current.pos, current.roomNo);
uint warpID = fopAcM_create(PROC_TORNADO, 1, &current.pos, current.roomNo);
ship->setTactWarpID(warpID);
}
}
+1 -1
View File
@@ -134,7 +134,7 @@ bool daSwItem_c::_execute() {
}
csXyz angle(0, home.angle.y, 0);
u32 itemProcId = fopAcM_createItemFromTable(
uint itemProcId = fopAcM_createItemFromTable(
&current.pos, itemTbl, itemBitNo,
fopAcM_GetHomeRoomNo(this), 0, &angle, 1
);
-1
View File
@@ -54,7 +54,6 @@ BOOL daTama_c::_draw() {
/* 0000011C-000002D4 .text _execute__8daTama_cFv */
BOOL daTama_c::_execute() {
/* Nonmatching */
fopNpc_npc_c* partner = (fopNpc_npc_c*)fopAcM_SearchByID(mPartnerID);
bool del = true;
if (partner != NULL) {
+1 -1
View File
@@ -1014,7 +1014,7 @@ BOOL daTbox_c::actionOpenWait() {
dComIfGp_event_onEventFlag(0x04);
u8 itemNo = getItemNo();
u32 itemPID = fopAcM_createItemForTrBoxDemo(&current.pos, itemNo);
uint itemPID = fopAcM_createItemForTrBoxDemo(&current.pos, itemNo);
if (itemPID != fpcM_ERROR_PROCESS_ID_e) {
dComIfGp_event_setItemPartnerId(itemPID);
+2 -2
View File
@@ -569,8 +569,8 @@ void dAttList_c::setActor(fopAc_ac_c* i_actor) {
}
/* 8009FAB4-8009FACC .text getPId__10dAttHint_cFPv */
u32 dAttHint_c::getPId(void* i_proc) {
return fpcM_GetID(i_proc);
uint dAttHint_c::getPId(void* i_proc) {
return fopAcM_GetID(i_proc);
}
/* 8009FACC-8009FAFC .text convPId__10dAttHint_cFUi */
+1 -1
View File
@@ -63,7 +63,7 @@ void dCcD_GStts::Move() {
/* 800AB3DC-800AB46C .text Init__9dCcD_SttsFiiP10fopAc_ac_c */
void dCcD_Stts::Init(int weight, int param_1, fopAc_ac_c* pActor) {
u32 procId;
uint procId;
if (pActor) {
procId = fopAcM_GetID(pActor);
} else {
+1 -1
View File
@@ -700,7 +700,7 @@ dStage_Event_dt_c* dEvt_control_c::nextStageEventDt(void* idxp) {
}
/* 800715B8-800715DC .text getPId__14dEvt_control_cFPv */
u32 dEvt_control_c::getPId(void* ac) {
uint dEvt_control_c::getPId(void* ac) {
if (ac == NULL)
return fpcM_ERROR_PROCESS_ID_e;
return fopAcM_GetID(ac);
+1 -1
View File
@@ -1249,7 +1249,7 @@ int phase_1(dScnPly_ply_c* i_this) {
delete l_lkDemoAnmCommand;
}
u32 id = fopScnM_GetID(i_this);
uint id = fopScnM_GetID(i_this);
dStage_roomControl_c::setProcID(id);
dComIfGp_setStartStage(dComIfGp_getNextStartStage());
+1 -1
View File
@@ -25,7 +25,7 @@
struct title_of_scene_class : public scene_class {
public:
/* 0x1C4 */ u32 pad[0x97];
/* 0x420 */ u32 mMoviePId;
/* 0x420 */ uint mMoviePId;
#if VERSION == VERSION_PAL
static daMP_c* mMp;
+1 -1
View File
@@ -2378,7 +2378,7 @@ dStage_darkStatus_c dStage_roomControl_c::mDarkStatus[8] = {
{},
};
u32 dStage_roomControl_c::mProcID;
uint dStage_roomControl_c::mProcID;
s8 dStage_roomControl_c::mStayNo;
s8 dStage_roomControl_c::mOldStayNo;
u8 dStage_roomControl_c::mDarkRatio;