summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2018-12-30 11:59:00 -0500
committerscnorton <scnorton@biociphers.org>2018-12-30 11:59:00 -0500
commit220fe47299e9fd43ffd2cacfb0222ea4f5548998 (patch)
treee6c45477c8894bb23840e9b8a3080ef57bc21bdb /src
parent04e61537c2bcb0e6fdd631396ae7e5664d25c7d6 (diff)
sub_815D838; decompile some gfx
Diffstat (limited to 'src')
-rw-r--r--src/trainer_tower.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/trainer_tower.c b/src/trainer_tower.c
index 9d6ea8a3b..f2726d59b 100644
--- a/src/trainer_tower.c
+++ b/src/trainer_tower.c
@@ -1,8 +1,20 @@
#include "global.h"
#include "malloc.h"
#include "save.h"
+#include "event_data.h"
#include "cereader_tool.h"
+struct UnkStruct_8479D38
+{
+ u8 flags1[8];
+ u8 flags2[8];
+ u8 flags3[8];
+ u8 unk_24;
+ u8 unk_25;
+};
+
+extern const struct UnkStruct_8479D38 gUnknown_8479D38[15];
+
bool32 sub_815D7BC(void * dest, void * buffer)
{
if (TryCopySpecialSaveSection(30, buffer) != 1)
@@ -31,3 +43,24 @@ bool32 sub_815D834(void)
// Stubbed out?
return FALSE;
}
+
+void sub_815D838(void)
+{
+ u8 i, j;
+
+ for (i = 0; i < 15; i++)
+ {
+ const u8 * flags1 = gUnknown_8479D38[i].flags1;
+ const u8 * flags2 = gUnknown_8479D38[i].flags2;
+ const u8 * flags3 = gUnknown_8479D38[i].flags3;
+ for (j = 0; j < 8; j++)
+ {
+ if (flags1[j] != 0xFF)
+ FlagSet(1000 + flags1[j]);
+ if (flags2[j] != 0xFF)
+ FlagSet(1000 + flags2[j]);
+ if (flags3[j] != 0xFF)
+ FlagSet(1000 + flags3[j]);
+ }
+ }
+}