diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2025-03-18 12:45:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-18 15:45:44 -0400 |
| commit | d3e9175bfb5ca4fce4633e473d8d8a3556c3d3ef (patch) | |
| tree | 21a10894e590edebe9cd928a2fb48f4e8d061262 /include/f_pc | |
| parent | 58ba86b6a3cfebe38b643b7ffecf72090a720db0 (diff) | |
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
Diffstat (limited to 'include/f_pc')
| -rw-r--r-- | include/f_pc/f_pc_base.h | 2 | ||||
| -rw-r--r-- | include/f_pc/f_pc_create_req.h | 4 | ||||
| -rw-r--r-- | include/f_pc/f_pc_creator.h | 2 | ||||
| -rw-r--r-- | include/f_pc/f_pc_debug_sv.h | 16 | ||||
| -rw-r--r-- | include/f_pc/f_pc_layer.h | 2 | ||||
| -rw-r--r-- | include/f_pc/f_pc_node_req.h | 4 | ||||
| -rw-r--r-- | include/f_pc/f_pc_priority.h | 8 | ||||
| -rw-r--r-- | include/f_pc/f_pc_stdcreate_req.h | 3 |
8 files changed, 33 insertions, 8 deletions
diff --git a/include/f_pc/f_pc_base.h b/include/f_pc/f_pc_base.h index 78710be046..10f9041783 100644 --- a/include/f_pc/f_pc_base.h +++ b/include/f_pc/f_pc_base.h @@ -45,4 +45,6 @@ int fpcBs_Delete(base_process_class* i_proc); base_process_class* fpcBs_Create(s16 i_profname, fpc_ProcID i_procID, void* i_append); int fpcBs_SubCreate(base_process_class* i_proc); +extern int g_fpcBs_type; + #endif diff --git a/include/f_pc/f_pc_create_req.h b/include/f_pc/f_pc_create_req.h index 294f30862c..fa8dd1b6ae 100644 --- a/include/f_pc/f_pc_create_req.h +++ b/include/f_pc/f_pc_create_req.h @@ -29,14 +29,14 @@ typedef struct create_request { /* 0x44 */ layer_class* layer; } create_request; // Size: 0x48 -bool fpcCtRq_isCreatingByID(create_tag* i_createTag, fpc_ProcID* i_id); +BOOL fpcCtRq_isCreatingByID(create_tag* i_createTag, fpc_ProcID* i_id); BOOL fpcCtRq_IsCreatingByID(fpc_ProcID i_id); void fpcCtRq_CreateQTo(create_request* i_request); void fpcCtRq_ToCreateQ(create_request* i_request); BOOL fpcCtRq_Delete(create_request* i_request); BOOL fpcCtRq_Cancel(create_request* i_request); BOOL fpcCtRq_IsDoing(create_request* i_request); -void fpcCtRq_Handler(); +int fpcCtRq_Handler(); create_request* fpcCtRq_Create(layer_class* i_layer, u32 i_size, create_request_method_class* i_methods); diff --git a/include/f_pc/f_pc_creator.h b/include/f_pc/f_pc_creator.h index 8a81bd59e0..c23a3739ce 100644 --- a/include/f_pc/f_pc_creator.h +++ b/include/f_pc/f_pc_creator.h @@ -9,6 +9,6 @@ typedef struct base_process_class base_process_class; BOOL fpcCt_IsCreatingByID(fpc_ProcID id); BOOL fpcCt_IsDoing(base_process_class* pProc); BOOL fpcCt_Abort(base_process_class* pProc); -void fpcCt_Handler(); +int fpcCt_Handler(); #endif diff --git a/include/f_pc/f_pc_debug_sv.h b/include/f_pc/f_pc_debug_sv.h new file mode 100644 index 0000000000..d7c942faa5 --- /dev/null +++ b/include/f_pc/f_pc_debug_sv.h @@ -0,0 +1,16 @@ + +#ifndef F_PC_DEBUG_SV_H_ +#define F_PC_DEBUG_SV_H_ + +#include <dolphin.h> + +#ifdef DEBUG + +char* fpcDbSv_getNameString(s16 i_name); + +typedef void (*fpcDbSv_callback)(void* i_process); +extern const fpcDbSv_callback g_fpcDbSv_service[50]; + +#endif + +#endif diff --git a/include/f_pc/f_pc_layer.h b/include/f_pc/f_pc_layer.h index dfbef03b64..966b536bd2 100644 --- a/include/f_pc/f_pc_layer.h +++ b/include/f_pc/f_pc_layer.h @@ -42,7 +42,7 @@ s32 fpcLy_ToQueue(layer_class* i_layer, int treeListIdx, create_tag_class* i_cre s32 fpcLy_QueueTo(layer_class* i_layer, create_tag_class* i_createTag); int fpcLy_Cancel(layer_class* i_layer); -bool fpcLy_CancelMethod(process_method_tag_class* i_layer); +BOOL fpcLy_CancelMethod(process_method_tag_class* i_layer); void fpcLy_CancelQTo(process_method_tag_class* i_methods); s32 fpcLy_ToCancelQ(layer_class* i_layer, process_method_tag_class* i_methods); diff --git a/include/f_pc/f_pc_node_req.h b/include/f_pc/f_pc_node_req.h index 4491bc6850..c2058fbe8d 100644 --- a/include/f_pc/f_pc_node_req.h +++ b/include/f_pc/f_pc_node_req.h @@ -36,6 +36,10 @@ typedef struct node_create_request { /* 0x58 */ s16 name; /* 0x5C */ void* data; /* 0x60 */ s16 unk_0x60; +#ifdef DEBUG + /* 0x64 */ int unk_0x64; + /* 0x68 */ int unk_0x68; +#endif } node_create_request; // Size: 0x64 typedef struct request_node_class { diff --git a/include/f_pc/f_pc_priority.h b/include/f_pc/f_pc_priority.h index bbb0f469be..62b4b84507 100644 --- a/include/f_pc/f_pc_priority.h +++ b/include/f_pc/f_pc_priority.h @@ -10,17 +10,17 @@ enum { fpcPi_NONE_e = 0xFFFF, }; -typedef struct process_priority_queue_info { +typedef struct priority_id { /* 0x0 */ unsigned int layer_id; /* 0x4 */ u16 list_id; /* 0x6 */ u16 list_priority; -} process_priority_queue_info; +} priority_id; typedef struct process_priority_class { /* 0x00 */ create_tag_class base; /* 0x14 */ process_method_tag_class method_tag; - /* 0x30 */ process_priority_queue_info queue_info; - /* 0x38 */ process_priority_queue_info current_info; + /* 0x30 */ priority_id queue_info; + /* 0x38 */ priority_id current_info; } process_priority_class; s32 fpcPi_IsInQueue(process_priority_class* pPi); diff --git a/include/f_pc/f_pc_stdcreate_req.h b/include/f_pc/f_pc_stdcreate_req.h index a5a239e209..d393afafcb 100644 --- a/include/f_pc/f_pc_stdcreate_req.h +++ b/include/f_pc/f_pc_stdcreate_req.h @@ -14,6 +14,9 @@ typedef struct standard_create_request_class { /* 0x54 */ void* process_append; /* 0x58 */ stdCreateFunc create_post_method; /* 0x5C */ void* unk_0x5C; +#ifdef DEBUG + /* 0x60 */ int unk_0x60; +#endif } standard_create_request_class; s32 fpcSCtRq_phase_CreateProcess(standard_create_request_class* i_request); |
