mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-25 07:29:01 -05:00
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
#include "unk_0209BA18.h"
|
|
|
|
#include <nitro.h>
|
|
#include <string.h>
|
|
|
|
#include "constants/heap.h"
|
|
|
|
#include "field/field_system.h"
|
|
#include "overlay104/struct_ov104_02230BE4.h"
|
|
|
|
#include "field_system.h"
|
|
#include "heap.h"
|
|
#include "save_player.h"
|
|
|
|
#include "constdata/const_020F8BE0.h"
|
|
|
|
UnkStruct_ov104_02230BE4 *sub_0209BA18(FieldSystem *fieldSystem, void *param1)
|
|
{
|
|
UnkStruct_ov104_02230BE4 *v0 = Heap_AllocAtEnd(HEAP_ID_FIELD2, sizeof(UnkStruct_ov104_02230BE4));
|
|
|
|
MI_CpuClear8(v0, sizeof(UnkStruct_ov104_02230BE4));
|
|
|
|
v0->unk_00 = param1;
|
|
v0->options = SaveData_GetOptions(fieldSystem->saveData);
|
|
v0->saveData = fieldSystem->saveData;
|
|
v0->journalEntry = fieldSystem->journalEntry;
|
|
v0->bagCursor = fieldSystem->bagCursor;
|
|
v0->unk_20 = fieldSystem->battleSubscreenCursorOn;
|
|
v0->unk_14 = 0;
|
|
v0->unk_18 = 0;
|
|
v0->unk_1C = fieldSystem->location->mapId;
|
|
v0->sceneID = 14;
|
|
v0->fieldSystem = fieldSystem;
|
|
|
|
FieldSystem_StartChildProcess(fieldSystem, &Unk_020F8BE0, v0);
|
|
|
|
return v0;
|
|
}
|