From 7b8a6275ebdbb2b6d5023fe8769e08be074f032a Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 10 May 2020 14:12:15 -0400 Subject: Tocuh up main.c; key input --- include/main.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include/main.h') diff --git a/include/main.h b/include/main.h index 0df94795..57cc5fef 100644 --- a/include/main.h +++ b/include/main.h @@ -1,14 +1,21 @@ #ifndef GUARD_MAIN_H #define GUARD_MAIN_H +#include "FS_overlay.h" + +struct Unk21DBE18 +{ + u8 filler_00[16]; +}; + struct Unk2106FA0 { s32 unk0; s32 unk4; s32 unk8; s32 unkC; - s32 unk10; - s32 unk14; + FSOverlayID unk10; + struct Unk21DBE18 * unk14; s32 unk18; s32 unk1C; s32 unk20; -- cgit v1.2.3 From 66506824a796f28e9d926077024d319fa67d3aaf Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 10 May 2020 15:18:26 -0400 Subject: SDK declaration of PM_GetBackLight --- include/main.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/main.h') diff --git a/include/main.h b/include/main.h index 57cc5fef..da8d7921 100644 --- a/include/main.h +++ b/include/main.h @@ -2,6 +2,7 @@ #define GUARD_MAIN_H #include "FS_overlay.h" +#include "SPI_pm.h" struct Unk21DBE18 { @@ -10,7 +11,7 @@ struct Unk21DBE18 struct Unk2106FA0 { - s32 unk0; + PMBackLightSwitch unk0; s32 unk4; s32 unk8; s32 unkC; @@ -44,4 +45,7 @@ struct Unk21C48B8 s32 unk6C; }; +extern struct Unk2106FA0 gBacklightTop; +extern struct Unk2106FA0 gBacklightTop_2; // same as the first one, it's referenced twice in the constant pool... + #endif //GUARD_MAIN_H -- cgit v1.2.3 From c38f30451b1d7bbcf466c0f489799487a60581b0 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 10 May 2020 15:57:27 -0400 Subject: Decompile main through FUN_02000EC8 --- include/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/main.h') diff --git a/include/main.h b/include/main.h index da8d7921..e2a5a937 100644 --- a/include/main.h +++ b/include/main.h @@ -13,7 +13,7 @@ struct Unk2106FA0 { PMBackLightSwitch unk0; s32 unk4; - s32 unk8; + FSOverlayID unk8; s32 unkC; FSOverlayID unk10; struct Unk21DBE18 * unk14; -- cgit v1.2.3 From ee0060c513ce99b24cf0e303ae7684eaa2f99538 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 10 May 2020 16:15:39 -0400 Subject: Decompile through FUN_02000F4C --- include/main.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/main.h') diff --git a/include/main.h b/include/main.h index e2a5a937..23059702 100644 --- a/include/main.h +++ b/include/main.h @@ -22,6 +22,21 @@ struct Unk2106FA0 s32 unk20; }; +struct Unk21C4818 +{ + u32 unk0; + u32 unk4; + u32 unk8; + u32 unkC; +}; + +struct Unk21C4828 +{ + u32 unk0; + u32 unk4; + u32 unk8; +}; + struct Unk21C48B8 { void (*unk0)(s32); -- cgit v1.2.3