summaryrefslogtreecommitdiff
path: root/arm9/src
diff options
context:
space:
mode:
authorwho-knows-who <j.williams97@outlook.com>2020-10-23 11:24:49 +0100
committerwho-knows-who <j.williams97@outlook.com>2020-10-23 11:24:49 +0100
commit61dee8c8ed498f44d2cf56fef785fc04e82dd3cf (patch)
treefaa95a5a8ec8a6ca3b6ca8532c29e84bd351567d /arm9/src
parentdf909e012e1fa795e813157072359e3e1f520550 (diff)
Matched file unk_0202C0E0.s
Diffstat (limited to 'arm9/src')
-rw-r--r--arm9/src/unk_0202C0E0.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/arm9/src/unk_0202C0E0.c b/arm9/src/unk_0202C0E0.c
new file mode 100644
index 00000000..b39570fe
--- /dev/null
+++ b/arm9/src/unk_0202C0E0.c
@@ -0,0 +1,50 @@
+#include "global.h"
+#include "save_block_2.h"
+
+
+struct UnkSaveStruct0202C0E4
+{
+ u16 data[5][4];
+};
+
+u32 FUN_0202C0E0();
+void FUN_0202C0E4(struct UnkSaveStruct0202C0E4 *unkStruct);
+void FUN_0202C108(struct SaveBlock2 *save, u32 a1, u32 a2);
+u16 FUN_0202C12C(struct SaveBlock2 *save, u32 a1, u32 a2);
+
+
+THUMB_FUNC u32 FUN_0202C0E0()
+{
+ return sizeof(struct UnkSaveStruct0202C0E4); // 40
+}
+
+
+THUMB_FUNC void FUN_0202C0E4(struct UnkSaveStruct0202C0E4 *unkStruct)
+{
+
+ int j, i = 0;
+
+ do {
+ j = 0;
+ do {
+ unkStruct->data[i][j] = 0;
+ j++;
+ } while (j < 4);
+ i++;
+ } while (i < 5);
+}
+
+THUMB_FUNC void FUN_0202C108(struct SaveBlock2 *save, u32 a1, u32 a2)
+{
+ struct UnkSaveStruct0202C0E4 *unkSavStruct = SavArray_get(save, 0x21);
+ if (unkSavStruct->data[a1][a2] < 9999)
+ {
+ unkSavStruct->data[a1][a2]++;
+ }
+}
+
+THUMB_FUNC u16 FUN_0202C12C(struct SaveBlock2 *save, u32 a1, u32 a2)
+{
+ struct UnkSaveStruct0202C0E4 *unkSavStruct = SavArray_get(save, 0x21);
+ return unkSavStruct->data[a1][a2];
+} \ No newline at end of file