Document most of camdraw.c

This commit is contained in:
Ryan Dwyer
2024-09-05 17:48:21 +10:00
parent 7408435d92
commit 6f5a361610
18 changed files with 1462 additions and 1525 deletions
+1 -1
View File
@@ -3222,7 +3222,7 @@
#define OBJTYPE_SAFE 0x2b
#define OBJTYPE_SAFEITEM 0x2c
#define OBJTYPE_TANK 0x2d
#define OBJTYPE_CAMERAPRESET 0x2e
#define OBJTYPE_CAMERAPRESET 0x2e
#define OBJTYPE_TINTEDGLASS 0x2f
#define OBJTYPE_LIFT 0x30
#define OBJTYPE_CONDITIONALSCENERY 0x31
+13 -13
View File
@@ -4,21 +4,21 @@
#include "data.h"
#include "types.h"
void phead_init(void);
void phead_reset(void);
void func0f14a52c(void);
void func0f14a560(void);
s32 func0f14a9f8(s32 index);
s32 func0f14aa70(void);
u16 func0f14ad14(s32 device);
s32 func0f14ad38(s32 device);
bool func0f14aea0(s32 device);
void camdraw_init(void);
void camdraw_reset(void);
void camdraw_start_gbpaks(void);
void camdraw_stop_gbpaks(void);
s32 phead_get_unk3a4(s32 index);
s32 phead_get_unk3b8(void);
u16 editor_get_unk05c(s32 device);
s32 editor_get_unk060(s32 device);
bool editor_needs_gbpak(s32 device);
void func0f14aed0(s32 device);
void func0f14cf6c(void);
void editor_stop_autocalibrate(void);
Gfx *func0f14f07c(Gfx *gdl, s32 headorbodynum, s32 x1, s32 y1, s32 x2, s32 y2);
bool func0f15015c(s8 device, s32 filenum, u8 *arg2);
void ph_get_guid(s32 index, struct fileguid *guid);
void phead_init2(void);
bool camdraw_get_filemgr_preview(s8 device, s32 filenum, u8 *arg2);
void phead_get_guid(s32 index, struct fileguid *guid);
void camdraw_init_afterpaks(void);
extern const char var7f1b6050[];
extern const char var7f1b6058[];
+2 -2
View File
@@ -90,7 +90,7 @@ void mp0f18dec4(s32 arg0);
void mpsetupfile_get_overview(char *arg0, char *filename, u16 *numsims, u16 *stagenum, u16 *scenarionum);
s32 mpsetupfile_save(s32 device, s32 filenum, u16 deviceserial);
s32 mpsetupfile_load(s32 device, s32 filenum, u16 deviceserial);
void func0f18e558(void);
struct modeldef *func0f18e57c(s32 index, s32 *headnum);
void mp_reset_phead_modeldefs(void);
struct modeldef *mp_get_phead_modeldef(s32 index, s32 *headnum);
#endif
+1 -1
View File
@@ -10,7 +10,7 @@ void player_start_new_life(void);
void player_load_defaults(void);
void player_spawn(void);
void player_reset_bond(struct playerbond *pb, struct coord *pos);
void player_choose_body_and_head(s32 *bodynum, s32 *headnum, s32 *arg2);
void player_choose_body_and_head(s32 *bodynum, s32 *headnum, bool *isperfecthead);
void player_remove_chr_body(void);
void player_start_cutscene(s16 anim_id);
void player_reorient_for_cutscene_stop(s32 tweenduration60);
-203
View File
@@ -5653,209 +5653,6 @@ struct shotdata {
/*0x3c*/ struct hit hits[10];
};
struct var800a45a0 {
/*0x000*/ u32 unk000;
/*0x004*/ u32 unk004;
/*0x008*/ u32 unk008;
/*0x00c*/ s32 unk00c;
/*0x010*/ s32 unk010;
/*0x014*/ u32 unk014[4];
/*0x024*/ u32 unk024;
/*0x028*/ u32 unk028;
/*0x02c*/ u32 unk02c;
/*0x030*/ u32 unk030;
/*0x034*/ u32 unk034;
/*0x038*/ u32 unk038;
/*0x03c*/ u32 unk03c;
/*0x040*/ u32 unk040;
/*0x044*/ u32 unk044;
/*0x048*/ u32 unk048;
/*0x04c*/ u32 unk04c;
/*0x050*/ u32 unk050;
/*0x054*/ u32 unk054;
/*0x058*/ u32 unk058;
/*0x05c*/ u32 unk05c;
/*0x060*/ u32 unk060;
/*0x064*/ u32 unk064;
/*0x068*/ u32 unk068;
/*0x06c*/ s32 unk06c[8][8];
/*0x16c*/ u32 unk16c;
/*0x170*/ u32 unk170;
/*0x174*/ u32 unk174;
/*0x178*/ u32 unk178;
/*0x17c*/ f32 unk17c[8][8];
/*0x27c*/ f32 unk27c[8][8];
/*0x37c*/ s32 unk37c;
/*0x380*/ u8 *unk380[1];
/*0x384*/ u32 unk384;
/*0x388*/ u32 unk388;
/*0x38c*/ u32 unk38c;
/*0x390*/ u32 unk390;
/*0x394*/ u32 unk394;
/*0x398*/ u32 unk398;
/*0x39c*/ u32 unk39c;
/*0x3a0*/ u32 unk3a0;
/*0x3a4*/ u32 unk3a4;
/*0x3a8*/ u32 unk3a8;
/*0x3ac*/ u32 unk3ac;
/*0x3b0*/ u32 unk3b0;
/*0x3b4*/ u32 unk3b4;
/*0x3b8*/ u32 unk3b8;
/*0x3bc*/ u32 unk3bc;
/*0x3c0*/ u32 unk3c0;
/*0x3c4*/ u32 unk3c4;
/*0x3c8*/ u32 unk3c8;
/*0x3cc*/ u32 unk3cc;
/*0x3d0*/ u32 unk3d0;
/*0x3d4*/ u32 unk3d4;
/*0x3d8*/ u32 unk3d8;
/*0x3dc*/ u32 unk3dc;
/*0x3e0*/ u32 unk3e0;
/*0x3e4*/ u32 unk3e4;
/*0x3e8*/ u32 unk3e8;
/*0x3ec*/ u32 unk3ec;
/*0x3f0*/ u32 unk3f0;
/*0x3f4*/ u32 unk3f4;
/*0x3f8*/ u32 unk3f8[1];
/*0x3fc*/ u32 unk3fc;
/*0x400*/ u32 unk400;
/*0x404*/ u32 unk404;
/*0x408*/ u32 unk408;
/*0x40c*/ u32 unk40c;
/*0x410*/ u32 unk410;
/*0x414*/ u32 unk414;
/*0x418*/ u32 unk418;
/*0x41c*/ u32 unk41c;
/*0x420*/ u32 unk420;
/*0x424*/ u32 unk424;
/*0x428*/ u32 unk428;
/*0x42c*/ u32 unk42c;
/*0x430*/ u32 unk430;
/*0x434*/ u32 unk434;
/*0x438*/ u32 unk438;
/*0x43c*/ u32 unk43c;
/*0x440*/ u32 unk440;
/*0x444*/ u32 unk444;
/*0x448*/ u32 unk448;
/*0x44c*/ u32 unk44c;
/*0x450*/ u32 unk450;
/*0x454*/ u32 unk454;
/*0x458*/ u32 unk458;
/*0x45c*/ u32 unk45c;
/*0x460*/ u32 unk460;
/*0x464*/ u32 unk464;
/*0x468*/ u32 unk468;
/*0x46c*/ u32 unk46c;
/*0x470*/ u8 *unk470;
/*0x474*/ u8 *unk474;
/*0x478*/ u8 *unk478;
/*0x47c*/ u8 *unk47c;
/*0x480*/ u8 *unk480;
/*0x484*/ struct textureconfig *unk484;
/*0x488*/ struct textureconfig *unk488;
/*0x48c*/ u32 unk48c;
};
struct var8007f8e0 { // perfect head?
/*0x000*/ u32 unk000;
/*0x004*/ struct textureconfig unk004;
/*0x010*/ struct textureconfig unk010;
/*0x01c*/ u8 *unk01c;
/*0x020*/ u8 *unk020;
/*0x024*/ u8 *unk024;
/*0x028*/ u32 unk028;
/*0x02c*/ u32 unk02c;
/*0x030*/ f32 unk030;
/*0x034*/ u16 unk034;
/*0x036*/ u8 unk036;
/*0x038*/ u32 unk038;
/*0x03c*/ u32 unk03c;
/*0x040*/ u8 unk040[200];
/*0x108*/ u8 unk108[500];
/*0x2fc*/ u8 unk2fc[160];
/*0x39c*/ s32 colournum;
/*0x3a0*/ s32 stylenum;
/*0x3a4*/ s32 unk3a4;
/*0x3a8*/ s32 unk3a8;
/*0x3ac*/ s32 unk3ac;
/*0x3b0*/ s32 unk3b0;
/*0x3b4*/ s32 unk3b4;
/*0x3b8*/ s32 unk3b8;
/*0x3bc*/ s32 unk3bc;
/*0x3c0*/ s32 unk3c0;
/*0x3c4*/ s32 unk3c4;
/*0x3c8*/ s32 unk3c8;
/*0x3cc*/ s32 unk3cc;
/*0x3d0*/ f32 unk3d0[7];
/*0x3ec*/ s32 unk3ec;
/*0x3f0*/ s32 unk3f0;
/*0x3f4*/ u16 unk3f4_00 : 1;
/*0x3f4*/ u16 unk3f4_01 : 1;
/*0x3f4*/ u16 unk3f4_02 : 1;
/*0x3f4*/ u16 unk3f4_03 : 1;
/*0x3f4*/ u16 unk3f4_04 : 1;
/*0x3f8*/ struct fileguid fileguid;
};
struct var8007f8dc {
/*0x000*/ u32 unk000;
/*0x004*/ f32 unk004;
/*0x008*/ f32 unk008;
/*0x00c*/ f32 unk00c;
/*0x010*/ f32 unk010;
/*0x014*/ f32 unk014;
/*0x018*/ f32 unk018;
/*0x01c*/ f32 unk01c;
/*0x020*/ f32 unk020;
/*0x024*/ f32 unk024;
/*0x028*/ f32 unk028;
/*0x02c*/ f32 unk02c;
/*0x030*/ f32 unk030;
/*0x034*/ f32 unk034;
/*0x038*/ f32 unk038;
/*0x03c*/ f32 unk03c;
/*0x040*/ f32 unk040;
/*0x044*/ f32 unk044;
/*0x048*/ f32 unk048;
/*0x04c*/ f32 unk04c;
/*0x050*/ f32 unk050;
/*0x054*/ s32 unk054;
/*0x058*/ u32 unk058;
/*0x05c*/ s32 unk05c;
/*0x060*/ s32 unk060;
/*0x064*/ s32 unk064;
/*0x068*/ u32 unk068;
/*0x06c*/ u32 unk06c;
/*0x070*/ u32 unk070;
/*0x074*/ s32 unk074;
/*0x078*/ u32 unk078;
/*0x07c*/ s32 unk07c;
/*0x080*/ s32 unk080;
/*0x084*/ u32 unk084;
/*0x088*/ s32 unk088;
/*0x08c*/ u32 unk08c;
/*0x090*/ s32 unk090;
/*0x094*/ u32 unk094;
/*0x098*/ u8 unk098[30];
/*0x0b6*/ u8 unk0b6[30];
/*0x0d4*/ u8 unk0d4_00 : 1;
/*0x0d4*/ u8 unk0d4_01 : 1;
/*0x0d4*/ u8 unk0d4_02 : 1;
/*0x0d4*/ u8 unk0d4_03 : 1;
/*0x0d4*/ u8 unk0d4_04 : 1;
/*0x0d8*/ void *unk0d8;
/*0x0dc*/ u32 *unk0dc;
/*0x0e0*/ u32 unk0e0;
/*0x0e4*/ u32 unk0e4;
/*0x0e8*/ u32 unk0e8;
/*0x0ec*/ u32 unk0ec;
/*0x0f0*/ u32 unk0f0;
/*0x0f4*/ u32 unk0f4;
/*0x0f8*/ u32 unk0f8;
/*0x0fc*/ u32 unk0fc;
/*0x100*/ u32 unk100;
};
struct hatposition {
f32 x;
f32 y;