summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/code_801DAA30.cpp1
-rw-r--r--src/code_801DAAE0.cpp21
2 files changed, 21 insertions, 1 deletions
diff --git a/src/code_801DAA30.cpp b/src/code_801DAA30.cpp
index 4a24614..04337f2 100644
--- a/src/code_801DAA30.cpp
+++ b/src/code_801DAA30.cpp
@@ -1,7 +1,6 @@
#include "types.h"
#include "unkStruct.h"
#include "code_801DAAE0.h"
-#include "code_801DAA30.h"
unkStruct gUnk8063F2C8(1, 4, 0);
diff --git a/src/code_801DAAE0.cpp b/src/code_801DAAE0.cpp
new file mode 100644
index 0000000..0a7a460
--- /dev/null
+++ b/src/code_801DAAE0.cpp
@@ -0,0 +1,21 @@
+#include "types.h"
+#include "unkStruct.h"
+#include "code_801DAAE0.h"
+
+// TODO: C or C++
+
+extern "C" {
+
+// unkStruct gUnk8063F2D0(1, 4, 0);
+
+unkClass gUnk804912B0[16];
+
+unkClass* func_801DAAE0(void)
+{
+ for (u32 i = 0; i < 16; i++)
+ if (gUnk804912B0[i].unk0 == 0)
+ return &gUnk804912B0[i];
+ return NULL;
+}
+
+}