summaryrefslogtreecommitdiff
path: root/include/f_pc
diff options
context:
space:
mode:
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) {