summaryrefslogtreecommitdiff
path: root/arm9/modules/52/src
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/modules/52/src')
-rw-r--r--arm9/modules/52/src/module_52_c.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/arm9/modules/52/src/module_52_c.c b/arm9/modules/52/src/module_52_c.c
index b68bdd36..5c242b26 100644
--- a/arm9/modules/52/src/module_52_c.c
+++ b/arm9/modules/52/src/module_52_c.c
@@ -1,7 +1,9 @@
#include "global.h"
#include "main.h"
+#include "options.h"
#include "overlay_manager.h"
#include "player_data.h"
+#include "sav_system_info.h"
extern void FUN_0201681C(u32 param0, u32 heap_id, u32 param2);
extern int FUN_020168D0(u32 heap_id);
@@ -12,6 +14,8 @@ extern struct Unk21DBE18 UNK_020F2B7C;
extern void MOD52_021D7604(u32 heap_id, struct SaveBlock2 *save, u32 param2);
extern void FUN_02015E3C(struct IGT *igt);
+extern void MOD52_021D7688(u32 heap_id, struct SaveBlock2 *save);
+
THUMB_FUNC int MOD52_021D74E0()
{
FUN_0201681C(3, 0x4d, 2 << 16);
@@ -70,3 +74,22 @@ THUMB_FUNC int MOD52_021D757C()
return 1;
}
+
+THUMB_FUNC int MOD52_021D7594(struct UnkStruct_02006234 *param0)
+{
+ struct SaveBlock2 *save = OverlayManager_GetField18(param0)[2];
+ struct SavSysInfo *save_info = Sav2_SysInfo_get(save);
+
+ MOD52_021D7688(0x4d, save);
+ Options_SetButtonModeOnMain(save, 0);
+
+ if (!Sav2_SysInfo_MacAddressIsMine(save_info) || !Sav2_SysInfo_RTCOffsetIsMine(save_info))
+ {
+ FUN_020238A4(Sav2_SysInfo_RTC_get(save));
+ Sav2_SysInfo_InitFromSystem(save_info);
+ }
+
+ FUN_02015E3C(Sav2_PlayerData_GetIGTAddr(save));
+
+ return 1;
+}