mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-14 13:34:52 -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:
@@ -9,6 +9,7 @@
|
||||
#include "f_pc/f_pc_executor.h"
|
||||
#include "f_pc/f_pc_load.h"
|
||||
#include "f_pc/f_pc_node.h"
|
||||
#include "f_pc/f_pc_debug_sv.h"
|
||||
#include "JSystem/JUtility/JUTAssert.h"
|
||||
|
||||
/* 80021040-80021060 0020+00 s=0 e=1 z=0 None .text fpcDt_IsComplete__Fv */
|
||||
@@ -19,6 +20,7 @@ BOOL fpcDt_IsComplete() {
|
||||
/* 80021060-800210D4 0074+00 s=1 e=0 z=0 None .text fpcDt_deleteMethod__FP18base_process_class
|
||||
*/
|
||||
s32 fpcDt_deleteMethod(base_process_class* i_proc) {
|
||||
fpc_ProcID id = i_proc->id;
|
||||
layer_class* layer = i_proc->delete_tag.layer;
|
||||
s16 profname = i_proc->profname;
|
||||
|
||||
@@ -36,6 +38,11 @@ s32 fpcDt_deleteMethod(base_process_class* i_proc) {
|
||||
|
||||
/* 800210D4-8002110C 0038+00 s=0 e=1 z=0 None .text fpcDt_Handler__Fv */
|
||||
void fpcDt_Handler() {
|
||||
#ifdef DEBUG
|
||||
if (g_fpcDbSv_service[6] != NULL) {
|
||||
g_fpcDbSv_service[6](&g_fpcDtTg_Queue.mSize);
|
||||
}
|
||||
#endif
|
||||
cLsIt_Method(&g_fpcDtTg_Queue, (cNdIt_MethodFunc)fpcDtTg_Do, fpcDt_deleteMethod);
|
||||
}
|
||||
|
||||
@@ -51,7 +58,7 @@ s32 fpcDt_ToQueue(base_process_class* i_proc) {
|
||||
fpcLy_DeletingMesg(i_proc->layer_tag.layer);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -66,18 +73,16 @@ s32 fpcDt_ToDeleteQ(base_process_class* i_proc) {
|
||||
}
|
||||
|
||||
if (fpcBs_Is_JustOfType(g_fpcNd_type, i_proc->subtype)) {
|
||||
process_node_class* node = (process_node_class*)i_proc;
|
||||
if (fpcNd_IsDeleteTiming(node) == 0) {
|
||||
if (fpcNd_IsDeleteTiming((process_node_class*)i_proc) == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
layer_class* layer = &node->layer;
|
||||
layer_class* layer = &((process_node_class*)i_proc)->layer;
|
||||
|
||||
if (fpcLy_Cancel(layer) == 0) {
|
||||
JUT_ASSERT(0);
|
||||
JUT_ASSERT(196, 0);
|
||||
}
|
||||
|
||||
|
||||
if (fpcLyIt_OnlyHereLY(layer, (fpcLyIt_OnlyHereFunc)fpcDt_ToDeleteQ, NULL) == 0)
|
||||
{
|
||||
return 0;
|
||||
@@ -105,14 +110,32 @@ s32 fpcDt_ToDeleteQ(base_process_class* i_proc) {
|
||||
/* 800212A4-80021308 0064+00 s=0 e=3 z=0 None .text fpcDt_Delete__FPv */
|
||||
s32 fpcDt_Delete(void* i_proc) {
|
||||
base_process_class* proc = (base_process_class*)i_proc;
|
||||
|
||||
if (proc != NULL) {
|
||||
#ifdef DEBUG
|
||||
if (!fpcBs_Is_JustOfType(g_fpcBs_type, proc->type)) {
|
||||
if (g_fpcDbSv_service[12] != NULL) {
|
||||
g_fpcDbSv_service[12](proc);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
if (fpcCt_IsDoing(proc) == TRUE)
|
||||
return 0;
|
||||
|
||||
if (proc->init_state == 3)
|
||||
return 0;
|
||||
|
||||
return fpcDt_ToDeleteQ(proc);
|
||||
int ret = fpcDt_ToDeleteQ(proc);
|
||||
#ifdef DEBUG
|
||||
if (ret == 0) {
|
||||
if (g_fpcDbSv_service[5] != NULL) {
|
||||
g_fpcDbSv_service[5](proc);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user