summaryrefslogtreecommitdiff
path: root/include/m_common_data.h
diff options
context:
space:
mode:
authorMaide <34639600+Kelebek1@users.noreply.github.com>2023-08-16 19:11:19 +0100
committerGitHub <noreply@github.com>2023-08-16 11:11:19 -0700
commitfca5307ea908606c40c051d4c366ed8dcf077258 (patch)
treee7cbc4524c9510a935c62ab191eeeefa11374687 /include/m_common_data.h
parentc7a746e71e310a23ba43a7208b9c83d2d1d483ee (diff)
m_play (#50)
* m_play * Some warnings * lots of function renames from the gcn version * fix warnings * format * a * a * PR * PR2 --------- Co-authored-by: Maide <you@example.com> Co-authored-by: angie <angheloalf95@gmail.com>
Diffstat (limited to 'include/m_common_data.h')
-rw-r--r--include/m_common_data.h45
1 files changed, 39 insertions, 6 deletions
diff --git a/include/m_common_data.h b/include/m_common_data.h
index 719f850..ef1950e 100644
--- a/include/m_common_data.h
+++ b/include/m_common_data.h
@@ -9,7 +9,7 @@ struct ActorOverlay;
struct struct_801161E8_jp;
struct PlayState_unk_0110;
struct CommonData_unk_1004C_unk_14_arg0;
-
+struct PlayState;
typedef UNK_RET (*CommonData_unk_1004C_unk_04)(struct ActorOverlay*, const struct struct_801161E8_jp*, size_t, s32);
typedef UNK_RET (*CommonData_unk_1004C_unk_08)(void);
@@ -53,25 +53,58 @@ typedef struct CommonData_unk_10098 {
/* 0x10 */ CommonData_unk_10098_unk_10 unk_10;
} CommonData_unk_10098; // size >= 0x10
+typedef struct CommonData10138_Sub {
+ /* 0x00 */ char unk00[0x3];
+ /* 0x03 */ u8 unk_03;
+ /* 0x04 */ char unk04[0x1];
+ /* 0x05 */ u8 unk_05;
+ /* 0x06 */ u16 unk_06;
+ /* 0x08 */ u8 unk_08;
+} CommonData10138_Sub; // size >= 0xC
+
+typedef struct CommonData10138 {
+ /* 0x000 */ char unk000[0xA86];
+ /* 0xA86 */ CommonData10138_Sub unk_A86;
+} CommonData10138; // size >= 0xA90
+
+typedef void (*CommonData_100E4_Func)(struct PlayState*);
typedef struct CommonData {
- /* 0x00000 */ UNK_TYPE1 unk_00000[0x10000];
+ /* 0x00000 */ u8 unk00000[0x14];
+ /* 0x00014 */ s32 unk_00014;
+ /* 0x00018 */ u8 unk00018[0xFFE8];
/* 0x10000 */ u8 unk_10000; // named "game_started" in AC GCN decomp
- /* 0x10001 */ UNK_TYPE1 unk_10001[0x3];
+ /* 0x10001 */ u8 unk_10001;
+ /* 0x10002 */ u8 unk10002[0x1];
+ /* 0x10003 */ u8 unk_10003;
/* 0x10004 */ s32 unk_10004; // named "last_scene_no" in AC GCN decomp
/* 0x10008 */ UNK_TYPE1 unk_10008[0x44];
/* 0x1004C */ CommonData_unk_1004C *unk_1004C;
/* 0x10050 */ UNK_TYPE1 unk_10050[0x48];
/* 0x10098 */ CommonData_unk_10098 *unk_10098;
- /* 0x1009C */ UNK_TYPE1 unk_1009C[0xAC];
- /* 0x10148 */ UNK_TYPE1 unk_10148[0x3];
+ /* 0x1009C */ UNK_TYPE1 unk_1009C[0x48];
+ /* 0x100E4 */ CommonData_100E4_Func* unk_100E4;
+ /* 0x100E8 */ u8 unk100E8[0x37];
+ /* 0x1011F */ u8 unk_1011F;
+ /* 0x10120 */ u8 unk10120[0x1];
+ /* 0x10121 */ u8 unk_10121;
+ /* 0x10122 */ u16 unk_10122;
+ /* 0x10124 */ u8 unk10124[0x14];
+ /* 0x10138 */ CommonData10138* unk_10138;
+ /* 0x1013C */ u8 unk1013C[0xD];
+ /* 0x10149 */ u8 unk_10149;
+ /* 0x1014A */ u8 unk_1014A;
/* 0x1014B */ u8 unk_1014B; // named "wipeType" in AC GCN decomp
/* 0x1014C */ UNK_TYPE1 unk_1014C[0x2];
/* 0x1014E */ s16 unk_1014E;
/* 0x10150 */ UNK_TYPE1 unk_10150[0x664];
/* 0x107B4 */ UNK_TYPE1 unk_107B4[0x2];
/* 0x107B6 */ s16 unk_107B6; // named "demo_profile" in AC GCN decomp (though it's an array of two s16s in that game)
- /* 0x107B8 */ UNK_TYPE1 unk_107B8[0x2F8];
+ /* 0x107B8 */ u8 unk107B8[0x2C];
+ /* 0x107E4 */ s16 unk_107E4;
+ /* 0x107E6 */ u8 unk107E6[0x29C];
+ /* 0x10A82 */ s16 unk_10A82;
+ /* 0x10A84 */ u8 unk10A84[0x2C];
/* 0x10AB0 */ u8 unk_10AB0; // named "pad_connected" in AC GCN decomp
/* 0x10AB1 */ UNK_TYPE1 unk_10AB1[0x7];
} CommonData; // size = 0x10AB8