summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-10-15 19:57:26 -0500
committerMarcus Huderle <huderlem@gmail.com>2018-10-15 19:57:26 -0500
commitc028df7ce77d8a2e4ba528012ef24e65a17aa5ca (patch)
tree61fa13a25f0dd1bd3f2d2f47931f99a4e6e8d4bf /include
parent5a87582cc10fe330b89733a58eef50c27b0a6877 (diff)
Decompile a couple functions in titlescreen, and label gMain
Diffstat (limited to 'include')
-rwxr-xr-xinclude/m4a.h26
-rwxr-xr-xinclude/main.h22
-rwxr-xr-xinclude/titlescreen.h16
3 files changed, 64 insertions, 0 deletions
diff --git a/include/m4a.h b/include/m4a.h
new file mode 100755
index 0000000..5953794
--- /dev/null
+++ b/include/m4a.h
@@ -0,0 +1,26 @@
+#ifndef GUARD_M4A_H
+#define GUARD_M4A_H
+
+#include "gba/m4a_internal.h"
+
+void m4aSoundVSync(void);
+void m4aSoundVSyncOn(void);
+
+void m4aSoundInit(void);
+void m4aSoundMain(void);
+void m4aSongNumStart(u16);
+void m4aSongNumStop(u16 n);
+void m4aMPlayAllStop(void);
+void m4aMPlayContinue(struct MusicPlayerInfo *mplayInfo);
+void m4aMPlayFadeOut(struct MusicPlayerInfo *mplayInfo, u16 speed);
+void m4aMPlayFadeOutTemporarily(struct MusicPlayerInfo *mplayInfo, u16 speed);
+void m4aMPlayFadeIn(struct MusicPlayerInfo *mplayInfo, u16 speed);
+void m4aMPlayImmInit(struct MusicPlayerInfo *mplayInfo);
+
+extern struct MusicPlayerInfo gMPlayInfo_BGM;
+extern struct MusicPlayerInfo gMPlayInfo_SE1;
+extern struct MusicPlayerInfo gMPlayInfo_SE2;
+extern struct MusicPlayerInfo gMPlayInfo_SE3;
+extern struct SoundInfo gSoundInfo;
+
+#endif //GUARD_M4A_H
diff --git a/include/main.h b/include/main.h
new file mode 100755
index 0000000..6cc29c5
--- /dev/null
+++ b/include/main.h
@@ -0,0 +1,22 @@
+#ifndef GUARD_MAIN_H
+#define GUARD_MAIN_H
+
+#include "global.h"
+
+typedef void (*StateFunc)(void);
+
+struct Main
+{
+ /*0x00*/u8 filler0[0x2];
+ /*0x02*/u8 mainState;
+ /*0x03*/u8 subState;
+ /*0x04*/u8 filler4[0x12];
+ /*0x16*/u16 unk16;
+ /*0x18*/u8 filler18[0x28];
+ /*0x40*/int unk40;
+};
+
+extern struct Main gMain;
+extern StateFunc gMainFuncs[];
+
+#endif // GUARD_MAIN_H
diff --git a/include/titlescreen.h b/include/titlescreen.h
new file mode 100755
index 0000000..0fcbe8d
--- /dev/null
+++ b/include/titlescreen.h
@@ -0,0 +1,16 @@
+#ifndef GUARD_TITLESCREEN_H
+#define GUARD_TITLESCREEN_H
+
+struct UnkStruct2002888
+{
+ /*0x00*/u8 filler0[0x9];
+ /*0x09*/u8 unk9;
+ /*0x0A*/u8 fillerA[0x1];
+ /*0x0B*/u8 unkB;
+};
+
+extern struct UnkStruct2002888 gUnknown_2002888;
+extern s8 gAutoDisplayTitlescreenMenu;
+extern u8 gUnknown_202BE24;
+
+#endif // GUARD_TITLESCREEN_H