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:
TakaRikka
2024-11-29 08:24:26 -08:00
committed by GitHub
parent 6482fe7535
commit 073992df8d
903 changed files with 6835 additions and 6587 deletions
+8 -11
View File
@@ -4,12 +4,9 @@
*/
#include "f_pc/f_pc_load.h"
#include "c/c_dylink.h"
#include "SSystem/SComponent/c_phase.h"
extern s32 cDyl_IsLinked(s16 i_procName);
extern s32 cDyl_Unlink(s16 i_procName);
extern s32 cDyl_LinkASync(s16 i_procName);
/* 80021FB8-80022008 0050+00 s=0 e=1 z=0 None .text fpcLd_Use__Fs */
BOOL fpcLd_Use(s16 i_procName) {
if (fpcLd_IsLoaded(i_procName) == TRUE && fpcLd_Load(i_procName) == cPhs_COMPLEATE_e)
@@ -18,25 +15,25 @@ BOOL fpcLd_Use(s16 i_procName) {
}
/* 80022008-8002202C 0024+00 s=1 e=0 z=0 None .text fpcLd_IsLoaded__Fs */
s32 fpcLd_IsLoaded(s16 i_procName) {
return cDyl_IsLinked((int)i_procName);
BOOL fpcLd_IsLoaded(s16 i_procName) {
return cDyl_IsLinked((s16)i_procName);
}
/* 8002202C-80022050 0024+00 s=0 e=2 z=0 None .text fpcLd_Free__Fs */
void fpcLd_Free(s16 i_procName) {
cDyl_Unlink((int)i_procName);
cDyl_Unlink((s16)i_procName);
}
/* 80022050-800220A0 0050+00 s=1 e=1 z=0 None .text fpcLd_Load__Fs */
s32 fpcLd_Load(s16 i_procName) {
s32 phase = cDyl_LinkASync((int)i_procName);
s32 phase = cDyl_LinkASync((s16)i_procName);
switch (phase) {
case cPhs_COMPLEATE_e:
return cPhs_COMPLEATE_e;
case 0:
return 0;
case cPhs_INIT_e:
return cPhs_INIT_e;
default:
return cPhs_ERROR_e;
}
}
}