From 0b2a61e5d84e8a9950004c8d76ad8556e334f6c4 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Mon, 19 Sep 2016 23:49:22 -0700 Subject: WIP decompilation of script functions --- include/global.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'include/global.h') diff --git a/include/global.h b/include/global.h index e7e828aec..6fb9e2604 100644 --- a/include/global.h +++ b/include/global.h @@ -72,6 +72,39 @@ struct SecretBaseRecord u8 partyEVs[6]; }; +struct WarpData +{ + s8 mapGroup; + s8 mapNum; + u8 warpId; + s16 x, y; +}; + +struct RamScriptData +{ + u8 magic; + u8 mapGroup; + u8 mapNum; + u8 objectId; + u8 script[995]; +}; + +struct RamScript +{ + u32 checksum; + struct RamScriptData data; +}; + +struct SaveBlock1 +{ + struct Coords16 pos; + struct WarpData location; + u8 filler[0x3684]; + struct RamScript ramScript; +}; + +extern struct SaveBlock1 gSaveBlock1; + struct Time { s16 days; -- cgit v1.2.3