Decompile BossDoor

This commit is contained in:
octorock
2022-02-16 17:41:35 +01:00
parent a448d22298
commit 0aebbae239
27 changed files with 261 additions and 787 deletions
+1 -2
View File
@@ -5,14 +5,13 @@
#include "script.h"
#include "npc.h"
#include "game.h"
#include "functions.h"
typedef struct {
u32 unk_00;
s8 unk_04;
} gUnk_0810C89C_struct;
extern void sub_08078850(Entity*, u32, s8, gUnk_0810C89C_struct*);
extern u8 gUnk_0810C88C[];
extern Hitbox gUnk_0810C894;
extern gUnk_0810C89C_struct gUnk_0810C89C[];
-1
View File
@@ -34,7 +34,6 @@ extern void sub_08067DCC(Entity*, u32);
extern u8 gUnk_0811110C[2];
extern u32 gUnk_0811110F;
extern void sub_08078850(Entity*, u32, u8, u32*);
extern u16 gUnk_08111104[];
+1 -2
View File
@@ -1,6 +1,5 @@
#include "npc.h"
extern void sub_08078850(Entity*, u32, u8, u32*);
#include "functions.h"
extern u32 gUnk_081133B4;
void sub_0806BFD8(Entity* this);
+1 -2
View File
@@ -5,7 +5,6 @@
extern void (*gUnk_08113D8C[])(Entity*);
extern void sub_08078850(Entity*, u32, u8, u32*);
extern u32 gUnk_08113D84[];
void Gregal(Entity* this) {
@@ -32,7 +31,7 @@ void sub_0806CAF4(Entity* this) {
}
sub_0807DD64(this);
sub_08078778(this);
sub_08078850(this, 1, gUnk_08113D84[1], gUnk_08113D84);
sub_08078850(this, 1, (u8)gUnk_08113D84[1], gUnk_08113D84);
}
ExecuteScriptForEntity(this, NULL);
HandleEntity0x82Actions(this);
+1 -1
View File
@@ -3,8 +3,8 @@
#include "player.h"
#include "flags.h"
#include "npc.h"
#include "functions.h"
extern void sub_08078850(Entity*, u32, u32, u32*);
extern u32 gUnk_08113F44;
extern Dialog gUnk_08113F48[];
+1 -3
View File
@@ -14,8 +14,6 @@ typedef struct {
s8 unk_04;
} gUnk_0810C89C_struct;
extern void sub_08078850(Entity*, u32, u8 /* TODO this is a s8 in beedle.c*/, gUnk_0810C89C_struct*);
extern void script_Object3ELeftStoneOpening; // Cutscene data type?
extern void script_Object3ERightStoneOpening; // Cutscene data type?
@@ -46,7 +44,7 @@ void sub_0806DA04(Entity* this, ScriptExecutionContext* context) {
// TODO gUnk_0811415C should be a gUnk_0810C89C_struct[], but then a lot of bytes everywhere are wrong?
gUnk_0810C89C_struct* a = (gUnk_0810C89C_struct*)&(
(gUnk_0810C89C_struct*)gUnk_0811415C)[context->intVariable]; // cast necessary to no longer make it a const* ?
sub_08078850(this, 1, a->unk_04, a);
sub_08078850(this, 1, (u8)a->unk_04, a);
}
void sub_0806DA1C(Entity* this, ScriptExecutionContext* context) {
-1
View File
@@ -8,7 +8,6 @@ extern void (*gUnk_08112278[])(Entity*);
extern void script_Rem;
extern void sub_08078850(Entity*, u32, u32, u32*);
extern u32 gUnk_0811229C;
extern void sub_0807F950(Entity* this, ScriptExecutionContext* context);
+1 -1
View File
@@ -4,9 +4,9 @@
#include "script.h"
#include "save.h"
#include "npc.h"
#include "functions.h"
extern Hitbox gUnk_081142FC;
extern void sub_08078850(Entity*, u32, u32, u32*);
extern u32 gUnk_08114304;
extern Dialog gUnk_08114308[];
+1 -2
View File
@@ -1,6 +1,5 @@
#include "npc.h"
extern void sub_08078850(Entity*, u32, u32, u32*);
#include "functions.h"
extern void (*const gUnk_08110360[])(Entity*);
extern void (*const gUnk_0811036C[])(Entity*);
-2
View File
@@ -14,8 +14,6 @@ extern u16 script_StockwellBuy[];
extern u16 script_StockwellDogFood[];
extern u8 gUnk_0810FDB8[];
extern void sub_08078850(Entity*, u32, u8, u32*);
extern void InitScriptExecutionContext(ScriptExecutionContext* context, u16* script);
extern u32 gUnk_0810FDA0;
extern u16 script_Stockwell;
-1
View File
@@ -8,7 +8,6 @@ extern void sub_0806ACC4(Entity*);
extern void sub_0806AEA8(Entity*);
extern void sub_0806AEE4(Entity*);
extern void sub_0806AFE8(Entity*, ScriptExecutionContext*);
extern void sub_08078850(Entity*, u32, u32, u32*);
extern u8 gUnk_081125F4[12];
extern SpriteLoadData gUnk_08112674[];
-1
View File
@@ -13,7 +13,6 @@ extern void (*const gUnk_0810B77C[])(Entity*);
extern void sub_08061CB4(Entity*, u32);
extern void sub_08061D64(Entity*);
extern void sub_08062048(Entity*);
extern void sub_08078850(Entity*, u32, u8, u32*);
extern SpriteLoadData* gUnk_0810B6EC[];
extern u8 gUnk_0810B78C[];