diff options
author | Mateusz Naściszewski <matin1111@wp.pl> | 2020-12-28 04:23:40 +0100 |
---|---|---|
committer | Seth Barberee <seth.barberee@gmail.com> | 2020-12-28 20:13:22 -0600 |
commit | 1d43c0efebf166781b264467980e09d0333ab851 (patch) | |
tree | 1cf226d88d46639c6fa7982a9db3e2c733a576f8 /include | |
parent | fb2fc3a2bad1605c32b49b5402c1efe56b0792b0 (diff) |
Decompile GameLoop and lots of renames
Diffstat (limited to 'include')
-rw-r--r-- | include/file_system.h | 1 | ||||
-rw-r--r-- | include/input.h | 13 | ||||
-rw-r--r-- | include/text.h | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/include/file_system.h b/include/file_system.h index 45f6aac..6d93b88 100644 --- a/include/file_system.h +++ b/include/file_system.h @@ -36,5 +36,6 @@ struct OpenedFile *OpenFile(const char *filename, const struct FileArchive *arc) u8 *GetFileDataPtr(struct OpenedFile *openedFile, int unused); struct OpenedFile *OpenFileAndGetFileDataPtr(const char *filename, const struct FileArchive *arc); struct OpenedFile *Call_OpenFileAndGetFileDataPtr(const char *filename, const struct FileArchive *arc); +void CloseFile(struct OpenedFile *openedFile); #endif //GUARD_FILE_SYSTEM_H diff --git a/include/input.h b/include/input.h index 17e2baf..9c93128 100644 --- a/include/input.h +++ b/include/input.h @@ -1,7 +1,7 @@ #ifndef GUARD_INPUT_H #define GUARD_INPUT_H -struct UnkInputStruct1 +struct Inputs { /* 0x0 */ u16 held; /* 0x2 */ u16 pressed; @@ -12,7 +12,7 @@ struct UnkInputStruct1 /* 0xC */ s32 repeatTimerDpad; }; -struct UnkInputStruct2 +struct InputTimers { /* 0x0 */ s16 holdTimerB; /* 0x2 */ s16 holdTimerR; @@ -20,7 +20,7 @@ struct UnkInputStruct2 /* 0x6 */ u16 unk6; }; -struct Input +struct UnusedInputStruct { /* 0x0 */ u16 unk0; /* 0x2 */ u16 unk2; @@ -34,7 +34,7 @@ struct Input /* 0x12 */ u16 unk12; /* 0x14 */ u16 unk14; /* 0x16 */ u16 unk16; - /* 0x16 */ u16 unk18; + /* 0x18 */ u16 unk18; /* 0x1A */ u16 unk1A; /* 0x1C */ u16 unk1C; /* 0x1E */ u16 unk1E; @@ -43,8 +43,7 @@ struct Input /* 0x24 */ u16 unk26; /* 0x28 */ u8 unk28; /* 0x29 */ u8 unk29; - /* 0x2A */ u8 unk2A; - /* 0x2B */ u8 padding; + /* 0x2A..0x2B - padding */ }; void InitInput(void); @@ -57,7 +56,7 @@ u8 sub_80048C8(void); u8 sub_80048CC(void); void ResetRepeatTimers(void); void UnpressButtons(void); -void sub_8004914(void); +void ResetUnusedInputStruct(void); void UpdateInput(void); #endif // GUARD_INPUT_H diff --git a/include/text.h b/include/text.h index d23ccf7..b786812 100644 --- a/include/text.h +++ b/include/text.h @@ -18,7 +18,7 @@ struct UnkTextStruct2 { u8 fill12[0x06]; }; -void sub_8006218(void); +void LoadCharmaps(void); u32 xxx_update_some_bg_tiles(u32 a0); void sub_8006438(const struct UnkTextStruct2 *a0, u8 a1, u8 a2, u32 *a3); void sub_8006554(void *a0, void *a1, void *a2, void *a3, u32 a4, const struct UnkTextStruct2 *a5, u8 a6, u32 a7, u32 *a8, u32 a9); |