mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-30 00:16:19 -04:00
some cleanup of f_pc/f_op files (#2254)
* cleanup f_pc files * cleanup f_op files * fix a couple f_op_actor_mng functions * minor JSystem work
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
/* 80023844-80023868 0024+00 s=0 e=3 z=0 None .text fpcPause_IsEnable__FPvUc */
|
||||
s32 fpcPause_IsEnable(void* i_proc, u8 i_flag) {
|
||||
base_process_class* pProc = (base_process_class*)i_proc;
|
||||
if ((pProc->mPauseFlag & i_flag) == i_flag) {
|
||||
if ((pProc->pause_flag & i_flag) == i_flag) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
@@ -20,11 +20,11 @@ s32 fpcPause_IsEnable(void* i_proc, u8 i_flag) {
|
||||
/* 80023868-800238D4 006C+00 s=0 e=1 z=0 None .text fpcPause_Enable__FPvUc */
|
||||
s32 fpcPause_Enable(void* i_proc, u8 i_flag) {
|
||||
base_process_class* pProc = (base_process_class*)i_proc;
|
||||
pProc->mPauseFlag |= i_flag;
|
||||
pProc->pause_flag |= i_flag;
|
||||
|
||||
if (fpcBs_Is_JustOfType(g_fpcNd_type, pProc->mSubType)) {
|
||||
if (fpcBs_Is_JustOfType(g_fpcNd_type, pProc->subtype)) {
|
||||
process_node_class* pNode = (process_node_class*)pProc;
|
||||
fpcLyIt_OnlyHere(&pNode->mLayer, (fpcLyIt_OnlyHereFunc)fpcPause_Enable,
|
||||
fpcLyIt_OnlyHere(&pNode->layer, (fpcLyIt_OnlyHereFunc)fpcPause_Enable,
|
||||
(void*)(i_flag & 0xFF));
|
||||
}
|
||||
return 1;
|
||||
@@ -33,11 +33,11 @@ s32 fpcPause_Enable(void* i_proc, u8 i_flag) {
|
||||
/* 800238D4-80023948 0074+00 s=0 e=1 z=0 None .text fpcPause_Disable__FPvUc */
|
||||
s32 fpcPause_Disable(void* i_proc, u8 i_flag) {
|
||||
base_process_class* pProc = (base_process_class*)i_proc;
|
||||
pProc->mPauseFlag &= (0xFF - i_flag) & 0xFF;
|
||||
pProc->pause_flag &= (0xFF - i_flag) & 0xFF;
|
||||
|
||||
if (fpcBs_Is_JustOfType(g_fpcNd_type, pProc->mSubType)) {
|
||||
if (fpcBs_Is_JustOfType(g_fpcNd_type, pProc->subtype)) {
|
||||
process_node_class* pNode = (process_node_class*)pProc;
|
||||
fpcLyIt_OnlyHere(&pNode->mLayer, (fpcLyIt_OnlyHereFunc)fpcPause_Disable, (void*)i_flag);
|
||||
fpcLyIt_OnlyHere(&pNode->layer, (fpcLyIt_OnlyHereFunc)fpcPause_Disable, (void*)i_flag);
|
||||
}
|
||||
|
||||
return 1;
|
||||
@@ -46,5 +46,5 @@ s32 fpcPause_Disable(void* i_proc, u8 i_flag) {
|
||||
/* 80023948-80023954 000C+00 s=0 e=1 z=0 None .text fpcPause_Init__FPv */
|
||||
void fpcPause_Init(void* i_proc) {
|
||||
base_process_class* pProc = (base_process_class*)i_proc;
|
||||
pProc->mPauseFlag = 0;
|
||||
}
|
||||
pProc->pause_flag = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user