diff options
author | James Williams <j.williams97@outlook.com> | 2021-03-06 16:20:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-06 16:20:05 +0000 |
commit | 03645c295df36374ab4f5c6bf464396699512fb9 (patch) | |
tree | 8fe7df4569bde9e90a90650ecc52f58b81bbd166 /arm9/src | |
parent | 6b7b7395fbcfd632bf3a3bcbb9dea4480c455ed2 (diff) | |
parent | cb1c7acb520481b63c12f9ff32b503916128f5eb (diff) |
Merge branch 'master' into who-knows-who
Diffstat (limited to 'arm9/src')
-rw-r--r-- | arm9/src/unk_02064E4C.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arm9/src/unk_02064E4C.c b/arm9/src/unk_02064E4C.c new file mode 100644 index 00000000..1e9f8515 --- /dev/null +++ b/arm9/src/unk_02064E4C.c @@ -0,0 +1,24 @@ +#include "global.h" +#include "map_header.h" +#include "unk_02064E4C.h" + +#pragma thumb on + +// TODO: types of a0 and a2 aren't known yet +extern void FUN_02002E14(void * a0, struct String * str, void * a2); + +void FUN_02064E4C(struct MsgData * msgData, u16 map_sec, struct String * dest) +{ + ReadMsgDataIntoString(msgData, map_sec, dest); + FUN_02002E14(0, dest, 0); +} + +void FUN_02064E60(u32 map_no, u32 heap_id, struct String * dest) +{ + struct MsgData * msgData = NewMsgDataFromNarc(1, NARC_MSGDATA_MSG, 382, heap_id); + u16 map_sec = FUN_02034824(map_no); + + FUN_02064E4C(msgData, map_sec, dest); + + DestroyMsgData(msgData); +} |