summaryrefslogtreecommitdiff
path: root/src/ground_link.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-10-22 10:01:07 -0700
committerGitHub <noreply@github.com>2021-10-22 10:01:07 -0700
commit3e5dd1d047bada52ab0dce2fe58b04e39bcaa1cc (patch)
tree0e40067d711c783ef97667f4a8256f38ab0d4b0a /src/ground_link.c
parent3f7ee3a806d965fae70fd98f2cd1af13a2e4cf0b (diff)
Death by 74 files (#65)
* death by 74 files * 20% reached * doc move stuff in pokemon * fix undef reference * doc more and plumb a few more constanst for num party members and num moves * that struct is def PokemonMove.. clean up all code with it
Diffstat (limited to 'src/ground_link.c')
-rw-r--r--src/ground_link.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/ground_link.c b/src/ground_link.c
new file mode 100644
index 0000000..80e0294
--- /dev/null
+++ b/src/ground_link.c
@@ -0,0 +1,33 @@
+#include "global.h"
+#include "debug.h"
+
+struct unkStruct_80A77D0
+{
+ u32 unk0;
+ u32 unk4;
+ u32 unk8;
+};
+
+struct unkStruct_203B4B8
+{
+ u32 unk0;
+};
+
+extern struct unkStruct_203B4B8 gUnknown_203B4B8;
+extern struct DebugLocation gUnknown_8118798;
+extern struct unkStruct_80A77D0 *sub_80A77D0(s16 r0, struct DebugLocation *r1);
+
+void sub_80AD868(void)
+{
+ gUnknown_203B4B8.unk0 = 0;
+}
+
+void sub_80AD874(void)
+{
+ gUnknown_203B4B8.unk0 = 0;
+}
+
+void GroundLink_Select(s16 r0)
+{
+ gUnknown_203B4B8.unk0 = sub_80A77D0(r0, &gUnknown_8118798)->unk8;
+}