summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCleverking2003 <30466983+Cleverking2003@users.noreply.github.com>2020-04-21 15:57:22 +0300
committerGitHub <noreply@github.com>2020-04-21 15:57:22 +0300
commitaeb4e938f5f48c8484419f5333a5b0e6caee7a21 (patch)
treec8d156131f95390672c1a1803560a85b445322d6 /src
parenta0749839f45525a0a64113f18688392da241cb7d (diff)
parentaa2cb11a71a85faf0f84a8d07376a303792e3703 (diff)
Merge pull request #17 from PikalaxALT/pikalax_work
Redump files
Diffstat (limited to 'src')
-rw-r--r--src/FUN_02000DF4.c11
-rw-r--r--src/main.c45
-rw-r--r--src/string_util.c2
3 files changed, 5 insertions, 53 deletions
diff --git a/src/FUN_02000DF4.c b/src/FUN_02000DF4.c
index 0cc1c2dd..0099480c 100644
--- a/src/FUN_02000DF4.c
+++ b/src/FUN_02000DF4.c
@@ -1,12 +1,5 @@
-#include "nitro.h"
-
-struct Unk2106FA0 {
- u8 filler0[0x8];
- s32 unk8;
- s32 unkC;
- s32 unk10;
- s32 unk14;
-};
+#include "global.h"
+#include "main.h"
extern struct Unk2106FA0 gBacklightTop;
diff --git a/src/main.c b/src/main.c
index d703331d..bfd6c82e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,46 +1,5 @@
-
-typedef unsigned char u8;
-typedef unsigned short u16;
-typedef unsigned long u32;
-typedef signed char s8;
-typedef signed short s16;
-typedef signed long s32;
-
-struct Unk2106FA0
-{
- s32 unk0;
- s32 unk4;
- s32 unk8;
- s32 unkC;
- s32 unk10;
- s32 unk14;
- s32 unk18;
- s32 unk1C;
- s32 unk20;
-};
-
-struct Unk21C48B8
-{
- void (*unk0)(s32);
- s32 unk4;
- s32 unk8;
- s32 unkC;
- s32 unk10;
- s32 unk14;
- s32 unk18;
- s32 unk1C;
- s32 unk20;
- s32 unk24;
- s32 unk28;
- s32 unk2C;
- s32 unk30;
- s32 unk34;
- s32 unk38;
- u8 filler3C[0xC];
- s32 unk48;
- u8 filler4C[0x20];
- s32 unk6C;
-};
+#include "global.h"
+#include "main.h"
extern struct Unk2106FA0 gBacklightTop;
extern struct Unk2106FA0 gBacklightTop_2; // same as the first one, it's referenced twice in the constant pool...
diff --git a/src/string_util.c b/src/string_util.c
index 7d755cb9..8f9c96ff 100644
--- a/src/string_util.c
+++ b/src/string_util.c
@@ -1,4 +1,4 @@
-#include "nitro.h"
+#include "global.h"
u16 gDigitTable[] = {
0xA2,