Decompile padsPrepare

This commit is contained in:
Ryan Dwyer
2021-09-11 16:36:10 +10:00
parent b03c3fa75b
commit b34c9afde3
8 changed files with 127 additions and 198 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ extern struct savefile_solo g_SoloSaveFile;
extern struct savelocation_2d8 g_FilemgrLoadedMainFile;
extern s8 g_SoloCompleted;
extern u8 g_AltTitle;
extern s32 *g_PadsFile;
extern struct padsfileheader *g_PadsFile;
extern u16 *g_PadOffsets;
extern u16 *g_CoverFlags;
extern s32 *g_CoverRooms;
+1 -1
View File
@@ -4,6 +4,6 @@
#include "data.h"
#include "types.h"
void func0f012aa0(void);
void padsPrepare(void);
#endif
+1 -1
View File
@@ -6,6 +6,6 @@
void func0f013ee0(void);
void coverAllocateSpecial(u16 *specialcovernums);
void coverLoad(void);
void coverPrepare(void);
#endif
+15
View File
@@ -423,6 +423,12 @@ struct prop {
/*0x44*/ struct var800a41b0 *unk44;
};
struct packedpad {
s32 flags : 18;
s32 room : 10;
s32 liftnum : 4;
};
struct pad {
/*0x00*/ struct coord pos;
/*0x0c*/ struct coord look;
@@ -2948,6 +2954,15 @@ struct cover {
/*0x0c*/ u16 flags;
};
struct padsfileheader {
s32 numpads;
s32 numcovers;
s32 waypointsoffset;
s32 waygroupsoffset;
s32 coversoffset;
s16 padoffsets[1];
};
struct stagesetup {
/*0x00*/ struct waypoint *waypoints;
/*0x04*/ struct waygroup *waygroups;