From cf188406f006750ec7206e3dd2a6818c767729eb Mon Sep 17 00:00:00 2001 From: tgsm Date: Fri, 30 Apr 2021 04:30:27 -0400 Subject: Fix a bunch of function signatures A bunch of functions were thought to be returning/taking in an unk_204639c but they actually return/take an unksavstruct80. This fixes that, and also changes a couple of struct members, so this might be useful for scrcmd. --- include/script.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/script.h') diff --git a/include/script.h b/include/script.h index 9a7270c2..bb237523 100644 --- a/include/script.h +++ b/include/script.h @@ -28,7 +28,8 @@ struct UnkSavStruct80 u8 padding[0x8]; u32 unk08; struct SaveBlock2 *saveBlock2; //0xC - u8 padding2[0xC]; + struct UnkStruct_0204639C *unk10; + u8 padding2[0x8]; u32 *mapId; //0x1C u8 padding3[0x18]; u32 unk38; -- cgit v1.2.3 From fead56db333c9eb3024ad4483c26a11a66ffe9f1 Mon Sep 17 00:00:00 2001 From: tgsm Date: Wed, 5 May 2021 14:10:45 -0400 Subject: Decompile unk_0208890C --- include/script.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/script.h') diff --git a/include/script.h b/include/script.h index bb237523..cb41889d 100644 --- a/include/script.h +++ b/include/script.h @@ -37,7 +37,9 @@ struct UnkSavStruct80 u32 unk60; u8 padding5[0x14]; u32 unk78; - u8 padding6[0x2C]; + u8 padding6[0x1C]; + void *unk98; + u8 padding7[0xC]; struct UnkStruct_02046444 * unkA8; }; -- cgit v1.2.3 From fb002e4c21e5a4e4a2b4afa151ea725f16d86d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Calixte?= Date: Thu, 20 May 2021 18:33:34 +0200 Subject: remove obsolete externs --- include/script.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/script.h') diff --git a/include/script.h b/include/script.h index cb41889d..92d586b6 100644 --- a/include/script.h +++ b/include/script.h @@ -4,6 +4,8 @@ #include "global.h" #include "msgdata.h" #include "save_block_2.h" +#include "unk_02016B94.h" + struct ScriptContext; @@ -26,7 +28,7 @@ struct UnkStruct_02046444 struct UnkSavStruct80 { u8 padding[0x8]; - u32 unk08; + struct UnkStruct2 *unk08; struct SaveBlock2 *saveBlock2; //0xC struct UnkStruct_0204639C *unk10; u8 padding2[0x8]; -- cgit v1.2.3 From d2caf0745621b35455cd6d82ffe55d3a6d40235a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Calixte?= Date: Thu, 20 May 2021 19:25:56 +0200 Subject: struct renaming --- include/script.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/script.h') diff --git a/include/script.h b/include/script.h index 92d586b6..01bba305 100644 --- a/include/script.h +++ b/include/script.h @@ -28,7 +28,7 @@ struct UnkStruct_02046444 struct UnkSavStruct80 { u8 padding[0x8]; - struct UnkStruct2 *unk08; + struct UnkStruct_02016B94_2 *unk08; struct SaveBlock2 *saveBlock2; //0xC struct UnkStruct_0204639C *unk10; u8 padding2[0x8]; -- cgit v1.2.3