mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-05 12:23:36 -04:00
Attempt to decompile bgBuildTables
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
|
||||
#define osSyncPrintf
|
||||
|
||||
#define F32_MAX 3.4028234663853E+38 // 7f7fffff
|
||||
#define S32_MAX 2147483647
|
||||
#define U32_MAX 4294967295
|
||||
|
||||
@@ -2680,6 +2679,7 @@
|
||||
#define PORTALCMD_IF 0x5a
|
||||
#define PORTALCMD_TOGGLEEXEC 0x5b
|
||||
#define PORTALCMD_ENDIF 0x5c
|
||||
#define PORTALCMD_64 0x64
|
||||
#define PORTALCMD_TRAILER 0x65
|
||||
|
||||
#define PORTALFLAG_ENABLED 0x01
|
||||
|
||||
@@ -26,7 +26,7 @@ u32 func0f001734(void);
|
||||
void roomSetLightsFaulty(s32 roomnum, s32 chance);
|
||||
void roomSetLightBroken(s32 roomnum, s32 lightnum);
|
||||
void func0f001bdc(void);
|
||||
u32 func0f001c0c(void);
|
||||
void func0f001c0c(void);
|
||||
u32 func0f00215c(void);
|
||||
u32 func0f0023b8(void);
|
||||
u32 func0f00259c(void);
|
||||
|
||||
@@ -13,7 +13,7 @@ u32 func0f13bc48(void);
|
||||
u32 func0f13c07c(void);
|
||||
u32 func0f13c2e8(void);
|
||||
u32 func0f13c370(void);
|
||||
u32 func0f13c3f4(void);
|
||||
void func0f13c3f4(void);
|
||||
u32 func0f13c4f0(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -11,7 +11,7 @@ f32 func0f1657e4(void);
|
||||
void func0f1657f8(void);
|
||||
u32 func0f16598c(void);
|
||||
u32 func0f165c4c(void);
|
||||
u32 func0f165ee4(void);
|
||||
void func0f165ee4(s32 stagenum);
|
||||
void func0f165eec(s32 stagenum, s32 arg1);
|
||||
void func0f1660a4(f32 arg0);
|
||||
Gfx *func0f1664a0(Gfx *gdl, u32 arg1);
|
||||
|
||||
@@ -25,7 +25,7 @@ u8 func0f15b4c0(s32 portal);
|
||||
u32 not(u32 arg);
|
||||
u32 xorBabebabe(u32 value);
|
||||
void bgInit(s32 stagenum);
|
||||
void bgRoomsInit(s32 stagenum);
|
||||
void bgBuildTables(s32 stagenum);
|
||||
void func0f15c850(void);
|
||||
void func0f15c880(f32 arg0);
|
||||
f32 func0f15c888(void);
|
||||
@@ -49,7 +49,7 @@ bool roomIsVisibleByAnyPlayer(s32 room);
|
||||
bool roomIsVisibleByAnyAibot(s32 room);
|
||||
bool roomIsVisibleByPlayer(s32 room, u32 playernum);
|
||||
bool roomIsVisibleByAibot(s32 room, u32 aibotindex);
|
||||
u32 func0f15d870(void);
|
||||
s32 func0f15d870(void *arg0);
|
||||
u32 bgInflate(void *src, void *dst, u32 len);
|
||||
u32 func0f15da00(void);
|
||||
u32 func0f15dab4(void);
|
||||
@@ -93,10 +93,10 @@ s32 roomsGetActive(s16 *rooms, s32 len);
|
||||
s32 roomGetNeighbours(s32 room, s16 *rooms, s32 len);
|
||||
bool roomsAreNeighbours(s32 roomnum1, s32 roomnum2);
|
||||
void currentPlayerCalculateScreenProperties(void);
|
||||
u32 func0f1648cc(void);
|
||||
void func0f1648cc(s32 roomnum);
|
||||
void portalSwapRooms(u32 portal);
|
||||
u32 func0f164ab8(void);
|
||||
u32 func0f164c64(void);
|
||||
void func0f164ab8(s32 portalnum);
|
||||
void func0f164c64(s32 roomnum);
|
||||
void portalSetEnabled(s32 portal, bool enable);
|
||||
s32 func0f164e8c(struct coord *arg0, struct coord *arg1);
|
||||
u32 func0f164f9c(void);
|
||||
|
||||
@@ -688,7 +688,7 @@ extern u32 var800a4184;
|
||||
extern u32 var800a418c;
|
||||
extern u32 var800a4190;
|
||||
extern u32 var800a4194;
|
||||
extern u32 var800a41a0;
|
||||
extern u8 *var800a41a0;
|
||||
extern struct var800a41b0 *var800a41b0; // head
|
||||
extern struct var800a41b0 *var800a41b4; // tail
|
||||
extern u32 var800a41b8;
|
||||
|
||||
+3
-5
@@ -3570,10 +3570,8 @@ struct room {
|
||||
/*0x14*/ struct room14 *unk14;
|
||||
/*0x18*/ f32 bbmin[3];
|
||||
/*0x24*/ f32 bbmax[3];
|
||||
/*0x30*/ u32 unk30;
|
||||
/*0x34*/ u32 unk34;
|
||||
/*0x38*/ u32 unk38;
|
||||
/*0x3c*/ u32 unk3c;
|
||||
/*0x30*/ struct coord centre;
|
||||
/*0x3c*/ f32 radius; // from volume centre to the corner in 3D
|
||||
/*0x40*/ u32 unk40;
|
||||
/*0x44*/ void *unk44;
|
||||
/*0x48*/ u8 unk48;
|
||||
@@ -6966,7 +6964,7 @@ struct animationdefinition {
|
||||
};
|
||||
|
||||
struct portalvertices {
|
||||
s16 count;
|
||||
u8 count;
|
||||
struct coord vertices[1];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user