From 70a174197780758981cae2c012cee02f8d4ff83f Mon Sep 17 00:00:00 2001 From: hatal175 Date: Sat, 26 Jul 2025 03:44:23 +0300 Subject: d_a_obj_twGate Matching (#2555) * d_a_obj_twGate Matching * d_a_obj_volcbom OK --- include/f_pc/f_pc_base.h | 8 ++++++-- include/f_pc/f_pc_manager.h | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'include/f_pc') diff --git a/include/f_pc/f_pc_base.h b/include/f_pc/f_pc_base.h index 10f9041783..896e7a9c9d 100644 --- a/include/f_pc/f_pc_base.h +++ b/include/f_pc/f_pc_base.h @@ -14,14 +14,18 @@ typedef struct process_method_class process_method_class; typedef struct process_profile_definition process_profile_definition; typedef struct profile_method_class profile_method_class; +typedef struct state_class { + /* 0x00 */ s8 init_state; // maybe inaccurate name + /* 0x01 */ u8 create_phase; +} state_class; + typedef struct base_process_class { /* 0x00 */ int type; /* 0x04 */ fpc_ProcID id; /* 0x08 */ s16 name; /* 0x0A */ s8 unk_0xA; /* 0x0B */ u8 pause_flag; - /* 0x0C */ s8 init_state; // maybe inaccurate name - /* 0x0D */ u8 create_phase; + /* 0x0C */ state_class state; /* 0x0E */ s16 profname; /* 0x10 */ process_profile_definition* profile; /* 0x14 */ struct create_request* create_req; diff --git a/include/f_pc/f_pc_manager.h b/include/f_pc/f_pc_manager.h index a9ac53dff6..2150558827 100644 --- a/include/f_pc/f_pc_manager.h +++ b/include/f_pc/f_pc_manager.h @@ -54,7 +54,7 @@ inline BOOL fpcM_IsJustType(int i_typeA, int i_typeB) { } inline bool fpcM_IsFirstCreating(void* i_process) { - return ((base_process_class*)i_process)->init_state == 0; + return ((base_process_class*)i_process)->state.init_state == 0; } inline process_profile_definition* fpcM_GetProfile(void* i_process) { -- cgit v1.2.3