diff options
author | tgsm <doodrabbit@hotmail.com> | 2021-05-25 18:37:22 -0400 |
---|---|---|
committer | tgsm <doodrabbit@hotmail.com> | 2021-05-25 18:37:22 -0400 |
commit | 73e48106d014792276f46e185b1a7ccd30bf4f00 (patch) | |
tree | 5bbff37f05c8bc5fc2aab2fd174b9a9b5a1f08a2 /arm9/src | |
parent | 1f92eced46da4bdd0c31cb27d1b110aa8a9d75dd (diff) |
Decompile unk_0208A300
Diffstat (limited to 'arm9/src')
-rw-r--r-- | arm9/src/unk_0208A300.c | 38 |
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; +} |