mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-01 01:08:48 -04:00
d_a_e_pz equivalent (#2330)
* d_a_e_pz equivalent * rename var * match f_pc closer to debug * hopefully fix decompctx * sdk done * remove unneeded file
This commit is contained in:
+29
-6
@@ -11,10 +11,19 @@
|
||||
#include "f_pc/f_pc_method.h"
|
||||
#include "f_pc/f_pc_pause.h"
|
||||
#include "f_pc/f_pc_profile.h"
|
||||
#include "f_pc/f_pc_debug_sv.h"
|
||||
|
||||
#if VERSION == VERSION_SHIELD_DEBUG
|
||||
#include "Z2AudioLib/Z2AudioMgr.h"
|
||||
#endif
|
||||
|
||||
/* 8002064C-8002065C 0010+00 s=0 e=14 z=0 None .text fpcBs_Is_JustOfType__Fii */
|
||||
BOOL fpcBs_Is_JustOfType(int i_typeA, int i_typeB) {
|
||||
return i_typeB == i_typeA ? TRUE : FALSE;
|
||||
if (i_typeB == i_typeA) {
|
||||
return TRUE;
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/* 80450D00-80450D04 0004+00 s=1 e=0 z=0 None .sbss g_fpcBs_type */
|
||||
@@ -37,13 +46,27 @@ int fpcBs_MakeOfId() {
|
||||
|
||||
/* 800206C4-80020720 005C+00 s=0 e=1 z=0 None .text fpcBs_Execute__FP18base_process_class */
|
||||
int fpcBs_Execute(base_process_class* i_proc) {
|
||||
int result;
|
||||
layer_class* save_layer = fpcLy_CurrentLayer();
|
||||
int result = 1;
|
||||
|
||||
fpcLy_SetCurrentLayer(i_proc->layer_tag.layer);
|
||||
result = fpcMtd_Execute(i_proc->methods, i_proc);
|
||||
#ifdef DEBUG
|
||||
if (!fpcBs_Is_JustOfType(g_fpcBs_type, i_proc->type)) {
|
||||
if (g_fpcDbSv_service[10] != NULL) {
|
||||
g_fpcDbSv_service[10](i_proc);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
fpcLy_SetCurrentLayer(save_layer);
|
||||
if (result == 1) {
|
||||
layer_class* save_layer = fpcLy_CurrentLayer();
|
||||
|
||||
fpcLy_SetCurrentLayer(i_proc->layer_tag.layer);
|
||||
result = fpcMtd_Execute(i_proc->methods, i_proc);
|
||||
|
||||
fpcLy_SetCurrentLayer(save_layer);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user