summaryrefslogtreecommitdiff
path: root/include/structures.h
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2022-01-03 23:58:02 -0800
committertheo3 <arisstephenson2@gmail.com>2022-01-03 23:58:02 -0800
commit52db70bb9d63a801f76b2fe6b359bd402a2c5b2a (patch)
treea38de84a806c50f765d0370a2668a695038eb894 /include/structures.h
parentf26b2e286a7f462947b395da259e185fc8ecfa7f (diff)
naming work
Diffstat (limited to 'include/structures.h')
-rw-r--r--include/structures.h31
1 files changed, 13 insertions, 18 deletions
diff --git a/include/structures.h b/include/structures.h
index 1f368dcd..c6c8f80b 100644
--- a/include/structures.h
+++ b/include/structures.h
@@ -8,15 +8,15 @@
typedef struct {
int signature;
u8 saveFileId;
- u8 messageSpeed;
- u8 brightnessPref;
- u8 gameLanguage;
+ u8 msg_speed;
+ u8 brightness;
+ u8 language;
u8 name[6];
- u8 _e;
+ u8 invalid;
u8 _f;
-} struct_02000000;
-#define gSaveHeader ((struct_02000000*)(0x2000000))
-// extern struct_02000000 gSaveHeader;
+} SaveHeader;
+#define gSaveHeader ((SaveHeader*)(0x2000000))
+// extern SaveHeader gSaveHeader;
typedef struct {
u8 unk_00;
@@ -39,13 +39,13 @@ static_assert(sizeof(struct_02000010) == 0x20);
extern struct_02000010 gUnk_02000010;
typedef struct {
- u16 transitionType;
+ u16 type;
u8 field_0x2[4];
s16 playerXPos;
s16 playerYPos;
u8 field_0xa;
- u8 areaID;
- u8 roomID;
+ u8 area;
+ u8 room;
u8 playerLayer;
u8 field_0xe;
u8 playerState;
@@ -164,13 +164,8 @@ typedef struct {
u16 _6;
u8 _0[0x18];
struct OamData oam[0x80];
- OAMObj unk[0x100];
- u8 fill[10];
- u8 _426;
- u8 _427;
- u8 _428[6];
- u8 _42e;
-} OAMSettings;
-extern OAMSettings gUnk_03000000;
+ OAMObj unk[0xA0]; /* todo: affine */
+} OAMControls;
+extern OAMControls gOAMControls;
#endif