summaryrefslogtreecommitdiff
path: root/include/f_pc
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2025-07-26 03:44:23 +0300
committerGitHub <noreply@github.com>2025-07-25 17:44:23 -0700
commit70a174197780758981cae2c012cee02f8d4ff83f (patch)
treea4d90893b5d1de7adb4ccddc778b96ce1989c457 /include/f_pc
parent585670f2b1240d10a7e0a3c6dc7e84d8909206f3 (diff)
d_a_obj_twGate Matching (#2555)
* d_a_obj_twGate Matching * d_a_obj_volcbom OK
Diffstat (limited to 'include/f_pc')
-rw-r--r--include/f_pc/f_pc_base.h8
-rw-r--r--include/f_pc/f_pc_manager.h2
2 files changed, 7 insertions, 3 deletions
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) {