diff options
author | YamaArashi <shadow962@live.com> | 2016-05-20 11:45:24 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-05-21 10:35:53 -0700 |
commit | c0203de808a98d27446e01c6b7e9f9311a5ad3bf (patch) | |
tree | e538179372ce7cddc50b851e4c24a4c7e0a40c81 /src/main.c | |
parent | 4af578c1865e4b620f4c64401e0a16ccbd9efc8d (diff) |
sprite.c and updated preproc
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 45 |
1 files changed, 1 insertions, 44 deletions
diff --git a/src/main.c b/src/main.c index 9e029eeb2..0c5055e60 100644 --- a/src/main.c +++ b/src/main.c @@ -3,50 +3,7 @@ #include "gba/flash_internal.h" #include "siirtc.h" #include "rtc.h" - -typedef void (*MainCallback)(void); -typedef void (*IntrCallback)(void); -typedef void (*IntrFunc)(void); - -struct OamData -{ - u32 a, b; -}; - -struct Main -{ - MainCallback callback1; - MainCallback callback2; - - u32 field_8; - - IntrCallback vblankCallback; - IntrCallback hblankCallback; - IntrCallback vcountCallback; - IntrCallback serialCallback; - - vu16 intrCheck; - - u32 vblankCounter1; - u32 vblankCounter2; - - u16 heldKeysRaw; // held keys without L=A remapping - u16 newKeysRaw; // newly pressed keys without L=A remapping - u16 heldKeys; // held keys with L=A remapping - u16 newKeys; // newly pressed keys with L=A remapping - u16 newAndRepeatedKeys; // newly pressed keys plus key repeat - u16 keyRepeatCounter; // counts down to 0, triggering key repeat - bool16 watchedKeysPressed; // whether one of the watched keys was pressed - u16 watchedKeysMask; // bit mask for watched keys - - u32 field_38; - - struct OamData oamBuffer[128]; - - u8 state; - - bool8 oamLoadDisabled; -}; +#include "main.h" extern struct SoundInfo gSoundInfo; extern u16 gUnknown_3002A20; |