summaryrefslogtreecommitdiff
path: root/arm9/src
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2021-06-01 16:43:26 -0400
committerGitHub <noreply@github.com>2021-06-01 16:43:26 -0400
commit7e32d3758e7e36d7a67a1442cdb9386f9aa18a6e (patch)
treeaa1f69e62aebb192f03aabf5b41815e4268b1060 /arm9/src
parentf67d6fe193eeee8058a45934d08c3b883cc08eb9 (diff)
parent66c5da2386bf4de38683b080ace08d47a248ee7e (diff)
Merge pull request #398 from red031000/master
decomp unk_02033778.c
Diffstat (limited to 'arm9/src')
-rw-r--r--arm9/src/unk_02033778.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/arm9/src/unk_02033778.c b/arm9/src/unk_02033778.c
new file mode 100644
index 00000000..fa2a67da
--- /dev/null
+++ b/arm9/src/unk_02033778.c
@@ -0,0 +1,33 @@
+#include "global.h"
+#include "unk_02033778.h"
+#include "unk_0202F150.h"
+#include "player_data.h"
+
+extern struct PlayerData *FUN_0202DFA4(s32 param0);
+extern u32 FUN_0202E020(s32 param0);
+extern u32 FUN_0202E044(s32 param0);
+extern u32 FUN_02029B40(u32 param0, u32 param1, u32 param2, u32 language);
+extern void FUN_02029B90(u32 param0, u32 param1, u32 param2, u32 param3);
+
+THUMB_FUNC void FUN_02033778(u32 param0)
+{
+ s32 unk = FUN_02030F20();
+ if (FUN_0202DFA4(0) != NULL)
+ {
+ for (s32 i = 0; i < unk; i++)
+ {
+ if (FUN_02031190() != i)
+ {
+ FUN_020337C8(param0, FUN_0202E020(i), FUN_0202E044(i), PlayerProfile_GetLanguage(FUN_0202DFA4(i)));
+ }
+ }
+ }
+}
+
+THUMB_FUNC void FUN_020337C8(u32 param0, u32 param1, u32 param2, u32 language)
+{
+ if (FUN_02029B40(param0, param1, param2, language) == 0)
+ {
+ FUN_02029B90(param0, param1, param2, 1);
+ }
+}