summaryrefslogtreecommitdiff
path: root/arm9/src
diff options
context:
space:
mode:
authorAkira Akashi <rubenru09@aol.com>2021-05-26 14:46:11 +0100
committerGitHub <noreply@github.com>2021-05-26 14:46:11 +0100
commit554a409ba09dfd8c70bc22579dfcec231c3b9d36 (patch)
treec73803288addbc3256be6ca71a965670833c55fe /arm9/src
parent7d10ba28169226bf00b741f7d01bc3386b383343 (diff)
parent395de03637046068e1b4ad79f1c8b230b8f2b0c8 (diff)
Merge pull request #390 from tgsm/unk_0208A300
Decompile unk_0208A300
Diffstat (limited to 'arm9/src')
-rw-r--r--arm9/src/unk_0208A300.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/arm9/src/unk_0208A300.c b/arm9/src/unk_0208A300.c
new file mode 100644
index 00000000..3c4a496b
--- /dev/null
+++ b/arm9/src/unk_0208A300.c
@@ -0,0 +1,38 @@
+#include "global.h"
+#include "heap.h"
+#include "unk_0208A300.h"
+
+THUMB_FUNC struct UnkStruct_0208A300* FUN_0208A300(u32 heap_id)
+{
+ struct UnkStruct_0208A300* ret = AllocFromHeap(heap_id, sizeof(struct UnkStruct_0208A300));
+
+ __builtin__clear(ret, sizeof(struct UnkStruct_0208A300));
+ ret->unk4 = 2;
+
+ return ret;
+}
+
+THUMB_FUNC void FUN_0208A320(struct UnkStruct_0208A300* unk)
+{
+ FreeToHeap(unk);
+}
+
+THUMB_FUNC u32 FUN_0208A328(struct UnkStruct_0208A300* unk)
+{
+ return unk->unk0;
+}
+
+THUMB_FUNC void FUN_0208A32C(struct UnkStruct_0208A300* unk, u32 a1)
+{
+ unk->unk0 = a1;
+}
+
+THUMB_FUNC u32 FUN_0208A330(struct UnkStruct_0208A300* unk)
+{
+ return unk->unk4;
+}
+
+THUMB_FUNC void FUN_0208A334(struct UnkStruct_0208A300* unk, u32 a1)
+{
+ unk->unk4 = a1;
+}