mirror of
https://github.com/zeldaret/tmc
synced 2026-08-18 21:48:21 -04:00
Decompile BossDoor
This commit is contained in:
+1
-2
@@ -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[];
|
||||
|
||||
@@ -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
@@ -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
@@ -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);
|
||||
|
||||
@@ -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
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
@@ -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*);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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[];
|
||||
|
||||
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user