Skip to content

Commit

Permalink
cleanup arg names in f_pc_manager (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
fig02 authored Aug 8, 2024
1 parent d287e79 commit 864847d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
58 changes: 29 additions & 29 deletions include/f_pc/f_pc_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,52 +18,52 @@ typedef int (*fpcM_DrawIteraterFunc)(void*, void*);
inline fpc_ProcID fpcM_GetID(void* pProc) {
return pProc != NULL ? ((base_process_class*)pProc)->mBsPcId : fpcM_ERROR_PROCESS_ID_e;
}
inline s16 fpcM_GetName(void* pActor) {
return ((base_process_class*)pActor)->mProcName;
inline s16 fpcM_GetName(void* pProc) {
return ((base_process_class*)pProc)->mProcName;
}
inline u32 fpcM_GetParam(void* pActor) {
return ((base_process_class*)pActor)->mParameters;
inline u32 fpcM_GetParam(void* pProc) {
return ((base_process_class*)pProc)->mParameters;
}

inline void fpcM_SetParam(void* p_actor, u32 param) {
((base_process_class*)p_actor)->mParameters = param;
inline void fpcM_SetParam(void* pProc, u32 param) {
((base_process_class*)pProc)->mParameters = param;
}

inline s16 fpcM_GetProfName(void* pActor) {
return ((base_process_class*)pActor)->mProfName;
inline s16 fpcM_GetProfName(void* pProc) {
return ((base_process_class*)pProc)->mProfName;
}

inline fpc_ProcID fpcM_Create(s16 procName, FastCreateReqFunc createFunc, void* process) {
inline fpc_ProcID fpcM_Create(s16 procName, FastCreateReqFunc createFunc, void* params) {
return fpcSCtRq_Request(fpcLy_CurrentLayer(), procName, (stdCreateFunc)createFunc, NULL,
process);
params);
}

inline s16 fpcM_DrawPriority(void* param_0) {
return fpcLf_GetPriority((leafdraw_class*)param_0);
inline s16 fpcM_DrawPriority(void* pProc) {
return fpcLf_GetPriority((leafdraw_class*)pProc);
}

inline s32 fpcM_ChangeLayerID(void* proc, int layerID) {
return fpcPi_Change(&((base_process_class*)proc)->mPi, layerID, fpcPi_CURRENT_e, fpcPi_CURRENT_e);
inline s32 fpcM_ChangeLayerID(void* pProc, int layerID) {
return fpcPi_Change(&((base_process_class*)pProc)->mPi, layerID, fpcPi_CURRENT_e, fpcPi_CURRENT_e);
}

inline void fpcM_SetPriority(void* proc, int priority) {
fpcPi_Change(&((base_process_class*)proc)->mPi, fpcLy_CURRENT_e, priority, fpcPi_CURRENT_e);
inline void fpcM_SetPriority(void* pProc, int priority) {
fpcPi_Change(&((base_process_class*)pProc)->mPi, fpcLy_CURRENT_e, priority, fpcPi_CURRENT_e);
}

inline s32 fpcM_IsJustType(int type1, int type2) {
return fpcBs_Is_JustOfType(type1, type2);
}

inline bool fpcM_IsFirstCreating(void* proc) {
return ((base_process_class*)proc)->mInitState == 0;
inline bool fpcM_IsFirstCreating(void* pProc) {
return ((base_process_class*)pProc)->mInitState == 0;
}

inline process_profile_definition* fpcM_GetProfile(void* proc) {
return (process_profile_definition*)((base_process_class*)proc)->mpProf;
inline process_profile_definition* fpcM_GetProfile(void* pProc) {
return (process_profile_definition*)((base_process_class*)pProc)->mpProf;
}

inline void* fpcM_GetAppend(void* proc) {
return ((base_process_class*)proc)->mpUserData;
inline void* fpcM_GetAppend(void* pProc) {
return ((base_process_class*)pProc)->mpUserData;
}

inline BOOL fpcM_IsExecuting(fpc_ProcID id) {
Expand All @@ -74,8 +74,8 @@ inline void* fpcM_LyJudge(process_node_class* i_node, fpcLyIt_JudgeFunc i_func,
return fpcLyIt_Judge(&i_node->mLayer, i_func, i_data);
}

inline s8 fpcM_CreateResult(void* pActor) {
return ((base_process_class*)pActor)->mCreateResult;
inline s8 fpcM_CreateResult(void* pProc) {
return ((base_process_class*)pProc)->mCreateResult;
}

void fpcM_Draw(void* pProc);
Expand All @@ -85,11 +85,11 @@ s32 fpcM_Delete(void* pProc);
BOOL fpcM_IsCreating(fpc_ProcID pID);
void fpcM_Management(fpcM_ManagementFunc pFunc1, fpcM_ManagementFunc pFunc2);
void fpcM_Init(void);
base_process_class* fpcM_FastCreate(s16 pProcTypeID, FastCreateReqFunc param_2, void* param_3,
void* pData);
s32 fpcM_IsPause(void* pProc, u8 param_2);
void fpcM_PauseEnable(void* pProc, u8 param_2);
void fpcM_PauseDisable(void* pProc, u8 param_2);
base_process_class* fpcM_FastCreate(s16 pProcTypeID, FastCreateReqFunc createFunc, void* pUserData,
void* params);
s32 fpcM_IsPause(void* pProc, u8 i_flag);
void fpcM_PauseEnable(void* pProc, u8 i_flag);
void fpcM_PauseDisable(void* pProc, u8 i_flag);
void* fpcM_JudgeInLayer(uint i_layerID, fpcCtIt_JudgeFunc i_judgeFunc, void* i_data);

extern "C" {
Expand Down
10 changes: 5 additions & 5 deletions src/d/actor/d_a_kt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ static s32 daKt_Create(fopAc_ac_c* i_ac) {
i_this->current.pos.y = REG0_F(0) * 10.0f + 2500.0f;
fopAcM_SetParam(i_this, 1000);
for (s32 i = 0; i < num; i++) {
fopAcM_prm_class* appen = fopAcM_CreateAppend();
appen->mPos = i_this->current.pos;
appen->mAngle.set(0, 0, 0);
appen->mParameter = 1001 + i;
fpcM_Create(PROC_KT, NULL, appen);
fopAcM_prm_class* params = fopAcM_CreateAppend();
params->mPos = i_this->current.pos;
params->mAngle.set(0, 0, 0);
params->mParameter = 1001 + i;
fpcM_Create(PROC_KT, NULL, params);
}
}

Expand Down

0 comments on commit 864847d

Please sign in to comment.