fox_play finished, lots of new names for things (#58)

* stuff

* three whole files

* format

* format and such

* a switch in time

* merge prep

* nintendo switch

* format

* the great switch statement of our time

* 43AC0 matched

* stuff

* Enums everywhere

* oh god the switch

* knakyo

* new headers

* format

* fox

* everyone hates recursion

* format

* one more thing

* one more one more thing

* renames

* matches

* matrix scale why

* names and such

* cleanup

* name back

* it just keeps going

* they don't give up

* splits

* merge going poorly

* I object

* more names

* one nonmatching

* merge time

* merge complete

* cleanup

* poor rambo

* level fix
This commit is contained in:
petrie911
2023-12-24 13:28:35 -06:00
committed by GitHub
parent f76ce38ad1
commit 7633af7a28
39 changed files with 5818 additions and 2339 deletions
+26 -9
View File
@@ -22,10 +22,10 @@ void func_8000FFCC(void);
u8* func_8001C3EC(void);
void func_80016A50(void);
void func_800182F4(s32);
void func_80019218(u32, Vec3f*, u8, f32*, f32*, s8*);
void Audio_PlaySfx(u32, Vec3f*, u8, f32*, f32*, s8*);
void func_80019290(s32, Vec3f**);
void func_8001A38C(u8, Vec3f*);
void func_8001A500(Vec3f* sfxPos);
void Audio_KillSfx(Vec3f*);
void func_8001A55C(Vec3f*, u32);
void func_8001A838(u32);
void func_8001ACDC(s32);
@@ -37,7 +37,7 @@ void func_8001C8B8(u8);
void func_8001CA24(u8);
void func_8001CB80(u8, u8);
void func_8001CCDC(u8, Vec3f *);
void func_8001D1C8(s32, s32);
void func_8001D1C8(u8, s32);
void func_8001D2FC(Vec3f *, u16);
void func_8001D3A0(Vec3f *, u16);
void func_8001D400(s8);
@@ -110,7 +110,7 @@ void func_80035448(Object_2F4*);
//sf_36930
void PlayerShot_Initialize(PlayerShot *);
void func_800365E4(f32, f32, f32, f32, f32, f32, f32, f32, f32, s32, s32);
void func_8003D9B8();
void func_8003D9B8(void);
void func_8003DA0C(void);
void func_8003DAF0(void);
void func_8003DE68(s32, s32);
@@ -155,7 +155,7 @@ void func_800596C0(void);
void func_800596B0(Object_2F4*);
// fox_edisplay
void func_8005980C(f32);
void Graphics_SetScaleMtx(f32);
void func_80059850(Object_4C*);
void func_800598E8(Object_2F4*);
void func_80059A24(Object_2F4*);
@@ -199,7 +199,7 @@ void func_80060D94(s32);
void func_80060F30(Vec3f* , u32 , s32 );
void Object_Kill(Object*, Vec3f*);
s32 func_80060FE4(Vec3f*, f32);
void Object_SetInfo(ObjectInfo* info, u32 objId);
void Object_SetInfo(ObjectInfo*, u32);
void Object_80_Initialize(Object_80*);
void Object_4C_Initialize(Object_4C*);
void Object_2F4_Initialize(Object_2F4*);
@@ -210,7 +210,7 @@ void func_80061B68(void);
void func_80061CD0(void);
void func_80061E48(Object_2F4* , f32 , f32 , f32 );
void func_80061F0C(Object_2F4* , ObjectInit* , s32 );
void Object_Spawn(ObjectInit* , f32 , f32 , f32 , f32 );
void Object_Load(ObjectInit* , f32 , f32 , f32 , f32 );
void func_80062568(void);
void func_80062C38(f32, f32);
s32 func_800631A8(Vec3f*, f32*, Vec3f*);
@@ -327,7 +327,7 @@ void func_8007A28C(Object_8C* );
void func_8007A3C0(Object_8C* );
void func_8007A568(f32 xPos, f32 yPos, f32 zPos, f32 );
void func_8007A5F8(Object_8C* , Vec3f* , u32 );
void func_8007A6F0(Vec3f *, u32);
void func_8007A6F0(Vec3f *, s32);
void func_8007A748(Object_8C*);
s32 func_8007A774(Player*, Object_8C*, f32);
void func_8007A818(Object_8C*, f32 posX, f32 posY, f32 posZ, f32, u8, u8, u16);
@@ -490,7 +490,7 @@ void func_800A5FA0(Vec3f* , u32 , s32 );
void func_800A6070(Vec3f* arg0, u32 arg1);
void func_800A6148(void);
void func_800A69F8(s32 , f32 , f32 , f32 );
void func_800A6CD0(Player *, s32, s32);
void Player_ApplyDamage(Player *, s32, s32);
bool func_800A73E4(f32* , s32* , f32 posX, f32 posY, f32 posZ);
s32 func_800A78C4(Hitbox* hitbox, f32 , f32 , f32 , f32 , f32 , f32 );
void func_800A8BA4(Player* player);
@@ -544,6 +544,23 @@ void func_DF4260_80198310(Object_408 *);
void func_DF4260_801988E0(void);
void func_DF4260_8018ED78(Object_408*);
void func_E9F1D0_80189214(void);
void func_E9F1D0_8018BDD8(void);
void func_E9F1D0_8018C390(Player*);
void func_DF4260_80198C50(void);
void func_DF4260_8019949C(void);
void func_E16C50_8019E8B8(f32, f32, f32, f32);
void func_E9F1D0_801A5AD4(Player*);
void func_E9F1D0_801A5FC0(Player*);
void func_E16C50_801AA8E8(Player*);
void func_E16C50_801AACF8(Player*);
void func_E16C50_801AC274(Player*);
void func_E16C50_801ACE50(Player*);
void func_E6A810_801ACFBC(ObjectInit*);
void func_E6A810_801AD080(void);
void func_E16C50_801AD328(Player*);
void func_E16C50_801BEC80(Player*);
void func_E08400_80187B08(Object_2F4 *);
void func_E08400_80188A40(Object_408 *);
void func_E08400_8018CCF8(Object_2F4 *);
+1 -1
View File
@@ -67,7 +67,7 @@ extern s32 D_801617FC;
extern s32 gHitCount;
extern s32 D_80177838;
extern s32 D_80177854;
extern s32 gAllRangeMode;
extern s32 gLevelMode;
extern s32 gTeamShields[];
extern s32 D_801778BC;
extern s32 gVersusMode;
+47 -47
View File
@@ -8,10 +8,10 @@
#define SAVE_SLOT_VENOM_2 15
typedef enum {
LEVELTYPE_GROUND,
LEVELTYPE_SPACE,
LEVELTYPE_UNK2,
LEVELTYPE_UNK3,
/* 0 */ LEVELTYPE_PLANET,
/* 1 */ LEVELTYPE_SPACE,
/* 2 */ LEVELTYPE_UNK2,
/* 3 */ LEVELTYPE_UNK3,
} LevelType;
typedef struct {
@@ -31,49 +31,49 @@ typedef struct {
/* 0x38 */ s32 ambR;
/* 0x3C */ s32 ambG;
/* 0x40 */ s32 ambB;
} EnvSettings; // size = 0x44?
} EnvSettings; // size = 0x44
typedef enum {
OVL_SETUP_TITLE,
OVL_SETUP_MENU,
OVL_SETUP_MAP,
OVL_SETUP_STATE_5,
OVL_SETUP_CREDITS,
OVL_SETUP_CORNERIA,
OVL_SETUP_METEO,
OVL_SETUP_TITANIA,
OVL_SETUP_SECTOR_X,
OVL_SETUP_AQUAS,
OVL_SETUP_AREA_6,
OVL_SETUP_FORTUNA,
OVL_SETUP_UNK_4,
OVL_SETUP_SECTOR_Y,
OVL_SETUP_SOLAR,
OVL_SETUP_ZONESS,
OVL_SETUP_VENOM_2,
OVL_SETUP_TRAINING,
OVL_SETUP_VENOM_1,
OVL_SETUP_KATINA,
OVL_SETUP_20,
OVL_SETUP_MACBETH,
OVL_SETUP_BOLSE,
OVL_SETUP_SECTOR_Z,
OVL_SETUP_VENOM_SW,
OVL_SETUP_VERSUS = 50,
OVL_SETUP_LOGO = 99,
/* 0 */ OVL_SETUP_TITLE,
/* 1 */ OVL_SETUP_MENU,
/* 2 */ OVL_SETUP_MAP,
/* 3 */ OVL_SETUP_STATE_5,
/* 4 */ OVL_SETUP_CREDITS,
/* 5 */ OVL_SETUP_CORNERIA,
/* 6 */ OVL_SETUP_METEO,
/* 7 */ OVL_SETUP_TITANIA,
/* 8 */ OVL_SETUP_SECTOR_X,
/* 9 */ OVL_SETUP_AQUAS,
/* 10 */ OVL_SETUP_AREA_6,
/* 11 */ OVL_SETUP_FORTUNA,
/* 12 */ OVL_SETUP_UNK_4,
/* 13 */ OVL_SETUP_SECTOR_Y,
/* 14 */ OVL_SETUP_SOLAR,
/* 15 */ OVL_SETUP_ZONESS,
/* 16 */ OVL_SETUP_VENOM_ANDROSS,
/* 17 */ OVL_SETUP_TRAINING,
/* 18 */ OVL_SETUP_VENOM_1,
/* 19 */ OVL_SETUP_KATINA,
/* 10 */ OVL_SETUP_20,
/* 11 */ OVL_SETUP_MACBETH,
/* 12 */ OVL_SETUP_BOLSE,
/* 13 */ OVL_SETUP_SECTOR_Z,
/* 14 */ OVL_SETUP_VENOM_2,
/* 50 */ OVL_SETUP_VERSUS = 50,
/* 99 */ OVL_SETUP_LOGO = 99,
} OverlaySetups;
typedef enum LevelId {
/* 0 */ LEVEL_CORNERIA,
/* 1 */ LEVEL_METEO,
/* 2 */ LEVEL_SECTOR_X,
/* 3 */ LEVEL_AREA_6,
/* 4 */ LEVEL_UNK_4,
/* 5 */ LEVEL_SECTOR_Y,
/* 6 */ LEVEL_VENOM_1,
/* 7 */ LEVEL_SOLAR,
/* 8 */ LEVEL_ZONESS,
/* 9 */ LEVEL_VENOM_2,
/* 0 */ LEVEL_CORNERIA,
/* 1 */ LEVEL_METEO,
/* 2 */ LEVEL_SECTOR_X,
/* 3 */ LEVEL_AREA_6,
/* 4 */ LEVEL_UNK_4,
/* 5 */ LEVEL_SECTOR_Y,
/* 6 */ LEVEL_VENOM_1,
/* 7 */ LEVEL_SOLAR,
/* 8 */ LEVEL_ZONESS,
/* 9 */ LEVEL_VENOM_ANDROSS,
/* 10 */ LEVEL_TRAINING,
/* 11 */ LEVEL_MACBETH,
/* 12 */ LEVEL_TITANIA,
@@ -83,14 +83,14 @@ typedef enum LevelId {
/* 16 */ LEVEL_KATINA,
/* 17 */ LEVEL_BOLSE,
/* 18 */ LEVEL_SECTOR_Z,
/* 19 */ LEVEL_VENOM_SW,
/* 80 */ LEVEL_VERSUS,
/* 19 */ LEVEL_VENOM_2,
/* 20 */ LEVEL_VERSUS,
} LevelId;
typedef enum {
VSTAGE_CORNERIA,
VSTAGE_KATINA,
VSTAGE_SECTOR_Z,
/* 0 */ VS_STAGE_CORNERIA,
/* 1 */ VS_STAGE_KATINA,
/* 2 */ VS_STAGE_SECTOR_Z,
} VsStage;
#endif
+28 -24
View File
@@ -4,6 +4,10 @@
#include "libultra/ultra64.h"
#include "sf64math.h"
#define HITBOX_UNK_2 200000.0f
#define HITBOX_UNK_3 300000.0f
#define HITBOX_UNK_4 400000.0f
typedef struct {
/* 0x00 */ f32 zPos1;
/* 0x04 */ s16 zPos2;
@@ -69,7 +73,7 @@ typedef struct {
/* 0x40 */ s32 index;
/* 0x44 */ s32 unk_44;
/* 0x48 */ s32 unk_48;
/* 0x4C */ s32 unk_4C;
/* 0x4C */ s32 timer_4C;
/* 0x50 */ u8 unk_50;
/* 0x51 */ char pad51[3];
/* 0x54 */ s32 unk_54;
@@ -96,15 +100,15 @@ typedef struct {
/* 0x40 */ s32 index;
/* 0x44 */ s16 unk_44;
/* 0x46 */ u8 unk_46;
/* 0x48 */ u16 unk_48;
/* 0x4A */ u16 unk_4A;
/* 0x48 */ u16 timer_48;
/* 0x4A */ u16 timer_4A;
/* 0x4C */ s8 unk_4C;
/* 0x4E */ s16 unk_4E;
/* 0x50 */ f32 unk_50;
/* 0x54 */ f32 unk_54;
/* 0x58 */ f32 unk_58;
/* 0x5C */ Vec3f sfxPos;
/* 0x68 */ f32 unk_68;
/* 0x68 */ f32 scale;
} Item; // size 0x6C
typedef struct {
@@ -117,12 +121,12 @@ typedef struct {
/* 0x4A */ s16 unk_4A;
/* 0x4C */ u8 unk_4C;
/* 0x4E */ s16 unk_4E;
/* 0x50 */ u16 unk_50;
/* 0x50 */ u16 timer_50;
/* 0x52 */ char pad52[0x2];
/* 0x54 */ Vec3f unk_54;
/* 0x60 */ Vec3f unk_60;
/* 0x6C */ f32 unk_6C;
/* 0x70 */ f32 unk_70;
/* 0x6C */ f32 scale1;
/* 0x70 */ f32 scale2;
/* 0x74 */ Gfx* unk_74;
/* 0x78 */ s16 unk_78;
/* 0x7A */ s16 unk_7A;
@@ -136,13 +140,13 @@ typedef struct {
/* 0x040 */ s32 index;
/* 0x044 */ char unk_44[0xA];
/* 0x04E */ s16 unk_04E;
/* 0x050 */ s16 unk_050;
/* 0x052 */ s16 unk_052;
/* 0x054 */ s16 unk_054;
/* 0x056 */ s16 unk_056;
/* 0x058 */ s16 unk_058;
/* 0x05A */ s16 unk_05A;
/* 0x05C */ s16 unk_05C;
/* 0x050 */ s16 timer_050;
/* 0x052 */ s16 timer_052;
/* 0x054 */ s16 timer_054;
/* 0x056 */ s16 timer_056;
/* 0x058 */ s16 timer_058;
/* 0x05A */ s16 timer_05A;
/* 0x05C */ s16 timer_05C;
/* 0x05E */ u8 unk_05E;
/* 0x05F */ char pad5F[3];
/* 0x062 */ s8 unk_062;
@@ -202,7 +206,7 @@ typedef struct {
/* 0x046 */ s16 unk_046;
/* 0x048 */ s16 unk_048;
/* 0x04A */ s16 unk_04A;
/* 0x04C */ s16 unk_04C;
/* 0x04C */ s16 timer_04C;
/* 0x04E */ s16 unk_04E;
/* 0x050 */ bool unk_050;
/* 0x054 */ bool unk_054;
@@ -230,15 +234,15 @@ typedef struct {
/* 0x0B6 */ s16 unk_0B6;
/* 0x0B8 */ s16 unk_0B8;
/* 0x0BA */ char pad0BA[0x2];
/* 0x0BC */ u16 unk_0BC;
/* 0x0BC */ u16 unk_0BE;
/* 0x0C0 */ u16 unk_0C0;
/* 0x0C2 */ u16 unk_0C2;
/* 0x0C4 */ u16 unk_0C4;
/* 0x0C6 */ u16 unk_0C6;
/* 0x0BC */ u16 timer_0BC;
/* 0x0BC */ u16 timer_0BE;
/* 0x0C0 */ u16 timer_0C0;
/* 0x0C2 */ u16 timer_0C2;
/* 0x0C4 */ u16 timer_0C4;
/* 0x0C6 */ u16 timer_0C6;
/* 0x0C8 */ u8 unk_0C8;
/* 0x0C9 */ u8 unk_0C9;
/* 0x0C9 */ u8 unk_0CA[4];
/* 0x0C9 */ u8 timer_0CA[4];
/* 0x0CE */ s16 unk_0CE;
/* 0x0D0 */ s8 unk_0D0;
/* 0x0D1 */ s16 unk_0D2;
@@ -251,7 +255,7 @@ typedef struct {
/* 0x0F4 */ Vec3f unk_0F4;
/* 0x100 */ Vec3f sfxPos;
/* 0x10C */ f32 unk_10C;
/* 0x110 */ f32 unk_110;
/* 0x110 */ f32 scale;
/* 0x114 */ f32 unk_114;
/* 0x118 */ f32 unk_118;
/* 0x11C */ f32 unk_11C;
@@ -621,7 +625,7 @@ typedef enum{
/* 331 */ OBJ_ITEM_331,
/* 332 */ OBJ_ITEM_332,
/* 333 */ OBJ_ITEM_333,
/* 334 */ OBJ_ITEM_CORN_ARCH,
/* 334 */ OBJ_ITEM_334,
/* 335 */ OBJ_ITEM_1UP,
/* 336 */ OBJ_ITEM_GOLD_RING,
/* 337 */ OBJ_ITEM_WING_REPAIR,
+86 -45
View File
@@ -4,12 +4,55 @@
#include "sf64math.h"
#include "sf64object.h"
typedef enum {
WINGSTATE_NONE,
WINGSTATE_BROKEN,
WINGSTATE_INTACT,
typedef enum WingState {
/* 0 */ WINGSTATE_NONE,
/* 1 */ WINGSTATE_BROKEN,
/* 2 */ WINGSTATE_INTACT,
} WingState;
typedef enum PlayerForm {
/* 0 */ FORM_ARWING,
/* 1 */ FORM_LANDMASTER,
/* 2 */ FORM_BLUE_MARINE,
/* 3 */ FORM_ON_FOOT,
/* 4 */ FORM_UNK_4,
} PlayerForm;
typedef enum DrawMode {
/* 0 */ DRAWMODE_0,
/* 1 */ DRAWMODE_1,
/* 2 */ DRAWMODE_2,
/* 3 */ DRAWMODE_3,
/* 4 */ DRAWMODE_4,
/* 5 */ DRAWMODE_5,
/* 6 */ DRAWMODE_6,
/* 7 */ DRAWMODE_7,
/* 8 */ DRAWMODE_8,
} DrawMode;
typedef enum LevelMode {
/* 0 */ LEVELMODE_ON_RAILS,
/* 1 */ LEVELMODE_ALL_RANGE,
/* 2 */ LEVELMODE_UNK_2,
} LevelMode;
typedef enum PlayerState1C8 {
/* 0 */ PLAYERSTATE_1C8_0,
/* 1 */ PLAYERSTATE_1C8_1,
/* 2 */ PLAYERSTATE_1C8_2,
/* 3 */ PLAYERSTATE_1C8_3,
/* 4 */ PLAYERSTATE_1C8_4,
/* 5 */ PLAYERSTATE_1C8_5,
/* 6 */ PLAYERSTATE_1C8_6,
/* 7 */ PLAYERSTATE_1C8_7,
/* 8 */ PLAYERSTATE_1C8_8,
/* 9 */ PLAYERSTATE_1C8_9,
/* 10 */ PLAYERSTATE_1C8_10,
/* 11 */ PLAYERSTATE_1C8_11,
/* 12 */ PLAYERSTATE_1C8_12,
/* 13 */ PLAYERSTATE_1C8_13,
} PlayerState1C8;
typedef struct {
/* 0x00 */ u8 rightState;
/* 0x01 */ u8 leftState;
@@ -30,16 +73,16 @@ typedef struct {
} WingInfo; // size = 0x3C
typedef enum {
PLAYERSHOT_0,
PLAYERSHOT_1,
PLAYERSHOT_2,
PLAYERSHOT_3,
PLAYERSHOT_4,
PLAYERSHOT_5,
PLAYERSHOT_6,
PLAYERSHOT_7,
PLAYERSHOT_8,
PLAYERSHOT_9,
/* 0 */ PLAYERSHOT_0,
/* 1 */ PLAYERSHOT_1,
/* 2 */ PLAYERSHOT_2,
/* 3 */ PLAYERSHOT_3,
/* 4 */ PLAYERSHOT_4,
/* 5 */ PLAYERSHOT_5,
/* 6 */ PLAYERSHOT_6,
/* 7 */ PLAYERSHOT_7,
/* 8 */ PLAYERSHOT_8,
/* 9 */ PLAYERSHOT_9,
} PlayerShotId;
typedef struct {
@@ -59,7 +102,7 @@ typedef struct {
/* 0x5C */ s32 unk_5C;
/* 0x60 */ s32 unk_60;
/* 0x64 */ s32 unk_64;
/* 0x68 */ s32 unk_68;
/* 0x68 */ s32 playerNum;
/* 0x6C */ char pad6C[4];
} PlayerShot; // size = 0x70
@@ -75,11 +118,11 @@ typedef struct Player {
/* 0x020 */ char pad20[8];
/* 0x028 */ f32 unk_028;
/* 0x02C */ f32 unk_02C;
/* 0x030 */ char pad30[4];
/* 0x030 */ f32 unk_030;
/* 0x034 */ f32 unk_034;
/* 0x038 */ char pad38[8];
/* 0x040 */ Vec3f unk_040;
/* 0x04C */ Vec3f unk_04C;
/* 0x040 */ Vec3f camEye;
/* 0x04C */ Vec3f camAt;
/* 0x058 */ f32 unk_058;
/* 0x05C */ f32 unk_05C;
/* 0x05C */ f32 unk_060;
@@ -87,14 +130,12 @@ typedef struct Player {
/* 0x068 */ f32 unk_068;
/* 0x06C */ f32 unk_06C;
/* 0x070 */ f32 unk_070;
/* 0x074 */ f32 unk_074;
/* 0x078 */ f32 unk_078;
/* 0x07C */ f32 unk_07C;
/* 0x074 */ Vec3f pos;
/* 0x080 */ f32 unk_080;
/* 0x084 */ f32 unk_084;
/* 0x088 */ f32 unk_088;
/* 0x08C */ Vec3f unk_08C;
/* 0x098 */ f32 unk_098;
/* 0x08C */ f32 unk_08C;
/* 0x090 */ Vec3f unk_090;
/* 0x09C */ f32 unk_09C;
/* 0x0A0 */ f32 unk_0A0;
/* 0x0A4 */ f32 unk_0A4;
@@ -104,7 +145,7 @@ typedef struct Player {
/* 0x0B4 */ f32 unk_0B4;
/* 0x0B8 */ f32 unk_0B8;
/* 0x0BC */ f32 unk_0BC;
/* 0x0C0 */ Vec3f unk_0C0;
/* 0x0C0 */ Vec3f vel;
/* 0x0CC */ f32 unk_0CC;
/* 0x0D0 */ f32 unk_0D0;
/* 0x0D4 */ f32 unk_0D4;
@@ -159,31 +200,31 @@ typedef struct Player {
/* 0x1A0 */ s32 unk_1A0;
/* 0x1A4 */ s32 unk_1A4;
/* 0x1A8 */ char pad1A8[0x1C];
/* 0x1C4 */ s32 unk_1C4;
/* 0x1C8 */ s32 unk_1C8;
/* 0x1CC */ s32 unk_1CC;
/* 0x1C4 */ s32 num;
/* 0x1C8 */ s32 state_1C8;
/* 0x1CC */ s32 form;
/* 0x1D0 */ s32 unk_1D0;
/* 0x1D4 */ s32 unk_1D4;
/* 0x1D8 */ char pad1D8[4];
/* 0x1DC */ s32 unk_1DC;
/* 0x1E0 */ s32 unk_1E0;
/* 0x1E4 */ s32 unk_1E4;
/* 0x1E8 */ s32 unk_1E8;
/* 0x1E0 */ s32 timer_1E0;
/* 0x1E4 */ s32 timer_1E4;
/* 0x1E8 */ s32 timer_1E8;
/* 0x1EC */ s32 unk_1EC;
/* 0x1F0 */ s32 unk_1F0;
/* 0x1F4 */ s32 unk_1F4;
/* 0x1F8 */ s32 unk_1F8;
/* 0x1FC */ s32 unk_1FC;
/* 0x1F8 */ s32 timer_1F8;
/* 0x1FC */ s32 timer_1FC;
/* 0x200 */ s32 unk_200;
/* 0x204 */ s32 unk_204;
/* 0x208 */ char pad208[4];
/* 0x20C */ s32 unk_20C;
/* 0x210 */ s32 unk_210;
/* 0x214 */ s32 unk_214;
/* 0x218 */ s32 unk_218;
/* 0x210 */ s32 timer_210;
/* 0x214 */ s32 timer_214;
/* 0x218 */ s32 timer_218;
/* 0x21C */ s32 unk_21C;
/* 0x220 */ s32 unk_220;
/* 0x224 */ s32 unk_224;
/* 0x220 */ s32 timer_220;
/* 0x224 */ s32 timer_224;
/* 0x228 */ s32 unk_228;
/* 0x22C */ s32 unk_22C;
/* 0x230 */ char pad230[4];
@@ -191,7 +232,7 @@ typedef struct Player {
/* 0x238 */ s32 unk_238;
/* 0x23C */ s32 unk_23C;
/* 0x240 */ s32 unk_240;
/* 0x244 */ s32 unk_244;
/* 0x244 */ s32 timer_244;
/* 0x248 */ f32 unk_248;
/* 0x24C */ f32 unk_24C;
/* 0x250 */ f32 unk_250;
@@ -204,8 +245,8 @@ typedef struct Player {
/* 0x26C */ s32 heal;
/* 0x270 */ s32 unk_270;
/* 0x274 */ char pad274[4];
/* 0x278 */ s32 unk_278;
/* 0x27C */ s32 unk_27C;
/* 0x278 */ s32 timer_278;
/* 0x27C */ s32 timer_27C;
/* 0x280 */ s32 unk_280;
/* 0x284 */ s32 unk_284;
/* 0x288 */ s32 unk_288;
@@ -215,10 +256,10 @@ typedef struct Player {
/* 0x2BC */ f32 unk_2BC;
/* 0x2C0 */ f32 unk_2C0;
/* 0x2C4 */ s32 unk_2C4;
/* 0x2C8 */ Vec3f unk_2C8;
/* 0x2D4 */ Vec3f unk_2D4;
/* 0x2E0 */ Vec3f unk_2E0;
/* 0x2EC */ Vec3f unk_2EC;
/* 0x2C8 */ Vec3f hit2;
/* 0x2D4 */ Vec3f hit1;
/* 0x2E0 */ Vec3f hit4;
/* 0x2EC */ Vec3f hit3;
/* 0x2F8 */ Vec3f jointTable[30];
/* 0x460 */ union {
Vec3f unk_460;
@@ -235,7 +276,7 @@ typedef struct Player {
/* 0x48C */ u8 unk_48C;
/* 0x490 */ f32 unk_490;
/* 0x494 */ u8 unk_494;
/* 0x498 */ s32 unk_498;
/* 0x498 */ s32 timer_498;
/* 0x49C */ WingInfo wings;
/* 0x4D8 */ f32 unk_4D8;
/* 0x4DC */ s32 unk_4DC;
+36 -36
View File
@@ -5,21 +5,21 @@
#include "gfx.h"
typedef enum {
GSTATE_NONE,
GSTATE_INIT,
GSTATE_TITLE,
GSTATE_MENU,
GSTATE_MAP,
GSTATE_STATE_5,
GSTATE_VS_INIT,
GSTATE_PLAY,
GSTATE_CREDITS,
GSTATE_BOOT = 100,
GSTATE_BOOT_WAIT,
GSTATE_SHOW_LOGO,
GSTATE_CHECK_SAVE,
GSTATE_LOGO_WAIT,
GSTATE_START,
/* 0 */ GSTATE_NONE,
/* 1 */ GSTATE_INIT,
/* 2 */ GSTATE_TITLE,
/* 3 */ GSTATE_MENU,
/* 4 */ GSTATE_MAP,
/* 5 */ GSTATE_GAME_OVER,
/* 6 */ GSTATE_VS_INIT,
/* 7 */ GSTATE_PLAY,
/* 8 */ GSTATE_CREDITS,
/* 100 */ GSTATE_BOOT = 100,
/* 101 */ GSTATE_BOOT_WAIT,
/* 102 */ GSTATE_SHOW_LOGO,
/* 103 */ GSTATE_CHECK_SAVE,
/* 104 */ GSTATE_LOGO_WAIT,
/* 105 */ GSTATE_START,
} GameStates;
typedef void (*TimerAction)(s32*, s32);
@@ -43,11 +43,11 @@ typedef struct {
} FaultMgr; // size = 0x9D8, 0x8 aligned
typedef enum {
SPTASK_STATE_NOT_STARTED,
SPTASK_STATE_RUNNING,
SPTASK_STATE_INTERRUPTED,
SPTASK_STATE_FINISHED,
SPTASK_STATE_FINISHED_DP
/* 0 */ SPTASK_STATE_NOT_STARTED,
/* 1 */ SPTASK_STATE_RUNNING,
/* 2 */ SPTASK_STATE_INTERRUPTED,
/* 3 */ SPTASK_STATE_FINISHED,
/* 4 */ SPTASK_STATE_FINISHED_DP
} SpTaskState;
typedef struct {
@@ -88,13 +88,13 @@ void func_80007FE4(FrameBuffer*, u16, u16);
void Fault_Init(void);
typedef enum {
SI_READ_CONTROLLER = 10,
SI_READ_SAVE,
SI_WRITE_SAVE,
SI_RUMBLE,
SI_SAVE_FAILED,
SI_SAVE_SUCCESS,
SI_CONT_READ_DONE,
/* 10 */ SI_READ_CONTROLLER = 10,
/* 11 */ SI_READ_SAVE,
/* 12 */ SI_WRITE_SAVE,
/* 13 */ SI_RUMBLE,
/* 14 */ SI_SAVE_FAILED,
/* 15 */ SI_SAVE_SUCCESS,
/* 16 */ SI_CONT_READ_DONE,
} SerialMesg;
#define MSG_QUEUE_EMPTY -1
@@ -111,15 +111,15 @@ typedef enum {
#define EVENT_MESG_PRENMI 4
typedef enum {
THREAD_ID_SYSTEM,
THREAD_ID_IDLE,
THREAD_ID_FAULT,
THREAD_ID_MAIN,
THREAD_ID_4,
THREAD_ID_AUDIO,
THREAD_ID_GRAPHICS,
THREAD_ID_7,
THREAD_ID_SERIAL,
/* 0 */ THREAD_ID_SYSTEM,
/* 1 */ THREAD_ID_IDLE,
/* 2 */ THREAD_ID_FAULT,
/* 3 */ THREAD_ID_MAIN,
/* 4 */ THREAD_ID_4,
/* 5 */ THREAD_ID_AUDIO,
/* 6 */ THREAD_ID_GRAPHICS,
/* 7 */ THREAD_ID_TIMER,
/* 8 */ THREAD_ID_SERIAL,
} ThreadID;
#endif
+27 -33
View File
@@ -7,46 +7,46 @@
#define UNK_TYPE s32
typedef struct {
f32 offset;
f32 size;
} HitboxDim;
/* 0x0 */ f32 offset;
/* 0x4 */ f32 size;
} HitboxDim; // size = 0x8
typedef struct {
HitboxDim z;
HitboxDim y;
HitboxDim x;
} Hitbox;
/* 0x00 */ HitboxDim z;
/* 0x08 */ HitboxDim y;
/* 0x10 */ HitboxDim x;
} Hitbox; // size = 0x18
typedef struct {
s16 vtx[3];
s16 unk_06;
Vec3s normal;
s32 dist;
} CollisionPoly;
/* 0x00 */ s16 vtx[3];
/* 0x06 */ s16 unk_06;
/* 0x08 */ Vec3s normal;
/* 0x10 */ s32 dist;
} CollisionPoly; // size = 0x14
typedef struct {
Vec3f min;
Vec3f max;
s32 polyCount;
CollisionPoly* polys;
Vec3s* mesh;
/* 0x00 */ Vec3f min;
/* 0x0C */ Vec3f max;
/* 0x18 */ s32 polyCount;
/* 0x1C */ CollisionPoly* polys;
/* 0x20 */ Vec3s* mesh;
} CollisionHeader; // size = 0x24
typedef struct {
Vec3f min;
Vec3f max;
s32 polyCount;
s16 (*polys)[3];
Vec3f* mesh;
/* 0x00 */ Vec3f min;
/* 0x0C */ Vec3f max;
/* 0x18 */ s32 polyCount;
/* 0x1C */ s16 (*polys)[3];
/* 0x20 */ Vec3f* mesh;
} CollisionHeader2; // size = 0x24
typedef struct {
/* bit 0 */ u8 unk_0 : 3;
/* bit 3 */ u8 unk_3 : 1;
/* bit 4 */ u8 unk_4 : 1;
/* bit 5 */ u8 unk_5 : 1;
/* bit 6 */ u8 unk_6 : 1;
/* bit 7 */ u8 unk_7 : 1;
/* bit 3 */ u8 expertMedal : 1;
/* bit 4 */ u8 expertClear : 1;
/* bit 5 */ u8 played : 1;
/* bit 6 */ u8 normalMedal : 1;
/* bit 7 */ u8 normalClear : 1;
} PlanetData; // size = 0x1
typedef struct {
@@ -88,12 +88,6 @@ typedef struct {
/* 0x100 */ Save backup;
} SaveFile; // size = 0x200
typedef struct {
/* 0x0 */ u16 unk_0;
/* 0x2 */ s8 unk_2;
/* 0x3 */ s8 unk_3;
} UnkStruct_gInputPress; // size = 0x4
typedef struct {
/* 0x00 */ u8 unk_00;
/* 0x01 */ char pad01[0x1];
+33 -39
View File
@@ -15,7 +15,9 @@ extern u64 __rspboot_end[];
extern u64 __aspmain_start[];
extern u64 __aspmain_end[];
extern u64 __f3dex_start[];
extern u64 __f3dex_end[];
extern u8 gF3dexData[SP_UCODE_DATA_SIZE];
extern u8 gAspMainData[];
extern Mtx gIdentityMtx; // 800C4620
extern Matrix gIdentityMatrix; //800C4660
@@ -130,11 +132,11 @@ extern OSMesg D_8015661C[1];
extern s32 D_800C9B4C;
extern u16 D_800C9C3C[16];
extern Vec3f D_800C9F2C; // could be f32[4]?
extern Vec3f D_800C9F2C;
extern s32 D_800CA220;
extern f32 D_800CA230;
extern Object_2F4* D_800CA234;
extern s32 D_800CA238;
extern s32 D_Timer_800CA238;
extern f32 D_800CBE70[];
extern f32 D_800CBE8C[];
extern f32 D_800CBEA8[];
@@ -177,15 +179,7 @@ extern Gfx* D_800CFC64[];
extern Gfx* D_800CFC7C[];
extern f32* D_800CF964[];
extern f32 D_800CFCA0[];
extern Vec3f D_800CFCC0; // initializer in sf_5A240
extern f32 D_800CFCCC[];
extern Vec3f D_800CFCEC;
extern Vec3f D_800CFCF8;
extern Vec3f D_800CFD04;
extern Vec3f D_800CFD10;
extern Vec3f D_800CFD1C;
extern Vec3f D_800CFD28;
extern Vec3f D_800CFD34;
extern Gfx D_800CFD80[];
extern ObjectInit* D_800CFDA0[];
extern s32 D_800CFDF4[];
@@ -283,7 +277,7 @@ extern f32 D_801615B8[4];
extern Vec3f D_801615D0;
// fox_enmy
extern s32 D_80161670[4];
extern s32 D_Timer_80161670[4];
extern s32 D_80161680;
extern u8 D_80161684;
@@ -326,7 +320,7 @@ extern s32 D_80161910[0x10]; // could be in fox_97F80
// fox_game
extern f32 D_80161A10;
extern f32 D_80161A14;
extern s32 D_80161A18[4];
extern s32 gPlayerInactive[4];
extern s32 D_80161A28;
extern u8 D_80161A2C;
extern u16 D_80161A2E;
@@ -345,7 +339,7 @@ extern u8 D_80161A50;
extern f32 D_80161A54;
//
extern s32 D_80161A5C;
extern u16 D_80161A60;
extern u16 D_Timer_80161A60;
extern u16 D_80161A62;
extern s32 D_80161A64;
extern EnvSettings* sEnvSettings;
@@ -359,7 +353,7 @@ extern s32 D_80161A84;
extern s32 D_80161A88;
extern s32 D_80161A8C;
extern u8 gGoldRingCount[4];
extern u8 D_80161A94;
extern u8 D_80161A94[4];
extern s32 gHitCount;
extern s32 gSavedHitCount;
extern s16 gLifeCount[4];
@@ -394,7 +388,7 @@ extern s32 D_8017782C;
extern u8 D_80177830;
extern s32 gGameState;
extern s32 D_80177838;
extern s32 D_8017783C;
extern s32 D_Timer_8017783C;
extern s32 D_80177840;
extern s32 D_80177848;
extern s32 D_80177844;
@@ -405,12 +399,12 @@ extern s32 D_80177858[4];
extern s32 D_80177868;
//
extern s32 D_80177870[4];
extern s32 gAllRangeMode;
extern s32 gLevelMode;
//
extern s32 D_80177888[4];
extern s32 D_80177898;
extern s32 gHandicap[4];
extern s32 gDrawMode;
extern s32 gVersusStage;
extern s32 D_801778A0;
extern s32 gPlayerNum;
extern s32 D_801778A4;
extern s32 gCamCount;
extern s32 D_801778AC;
@@ -421,15 +415,15 @@ extern s32 gSavedTeamShields[6];
extern bool gVersusMode;
//
extern UNK_TYPE D_801778F0[6];
extern u16 D_80177908[4];
extern s32 D_80177910[6];
extern u16 D_80177928[4];
extern u16 gBoostButton[4];
extern s32 gTeamDamage[6];
extern u16 gBrakeButton[4];
extern u8 D_80177930;
//
extern u16 D_80177938[4];
extern u16 gShootButton[4];
extern f32 D_80177940;
//
extern u16 D_80177948[4];
extern u16 gBombButton[4];
extern f32 D_80177950;
//
extern f32 D_80177958[4];
@@ -451,21 +445,21 @@ extern f32 D_801779B8;
extern u8 D_801779BC;
extern f32 D_801779C0;
//
extern s32 D_801779C8[4];
extern s32 gChargeTimers[4];
extern Vec3f D_801779D8;
extern f32 D_801779E4;
extern Vec3f D_801779E8;
extern f32 D_801779F4;
extern bool gExpertMode;
//
extern UNK_TYPE D_80177A00[4];
extern s32 D_Timer_80177A00[4];
extern s32 D_80177A10[10];
extern UNK_TYPE D_80177A38[4];
extern s32 D_Timer_80177A38[4];
extern f32 D_80177A48[10];
extern s32 D_80177A70[4];
extern s32 D_Timer_80177A70[4];
extern s32 D_80177A80;
//
extern s32 D_80177A88[4];
extern s32 D_Timer_80177A88[4];
extern u8 D_80177A98;
//
extern f32 D_80177AA0[4];
@@ -478,11 +472,11 @@ extern s32 D_80177AD0[4];
extern s32 D_80177AE0;
//
extern s32 D_80177AE8[4];
extern s32 D_80177AF8;
extern s32 gMainController;
//
extern s32 D_80177B00[4][4];
extern s32 D_80177B40;
extern u8 D_80177B44;
extern u8 D_Timer_80177B44;
extern s32 D_80177B48;
extern u8 D_80177B4C;
extern s32 D_80177B50[7];
@@ -493,9 +487,9 @@ extern s32 D_80177B90[7];
extern s8 D_80177BAC;
extern s32 D_80177BB0[7];
//
extern s16 D_80177BD0[4]; // up to [48]
extern s32 D_80177BD8[];
// 0x58
extern u16 D_Timer_80177BD0[4];
extern s32 D_80177BD8[24]; // overruns D_80177C30?
// -0x8??
extern u16 D_80177C30[4];
extern UNK_TYPE D_80177C38[6];
extern s32 D_80177C50;
@@ -581,13 +575,13 @@ extern s32 D_8017828C;
extern f32* D_80178290;
extern s32 D_80178294;
extern u32* D_80178298;
extern s32 D_8017829C;
extern s32 gRadioState;
//
extern s32 D_801782A4;
extern Object_58 *gObjects58;
extern s32 D_801782AC;
extern s32 D_Timer_801782AC;
//
extern s32 D_801782B4;
extern s32 D_Timer_801782B4;
extern s32 D_801782B8;
extern s32 D_801782BC;
extern s32 D_801782C0;
@@ -631,7 +625,7 @@ extern s32 D_80178360; // 2 lights second color
extern s32 D_80178364;
extern s32 D_80178368;
extern f32 D_8017836C; // 2 lights second color brightness
extern f32 D_80178370;
extern f32 D_80178370; // Vec3f?
extern f32 D_80178374;
extern f32 D_80178378;
extern s32 D_8017837C;
@@ -667,7 +661,7 @@ extern f32 D_80178470[3];
extern f32 D_8017847C;
extern s32 D_80178480;
extern s32 D_80178484;
extern s32 D_80178488;
extern bool D_80178488;
// 0x8
extern s32 D_80178494;
extern f32 D_80178498;
-4
View File
@@ -22,10 +22,6 @@ D_8000000F = 0x8000000F;//ignore:true
D_800C45E0 = 0x800C45E0;
D_800C57EC = 0x800C57EC;
D_800C7380 = 0x800C7380;
D_800C5FF4 = 0x800C5FF4; //type:u16 size:5000
D_80151650 = 0x80151650; //ignore:true
D_801615D0 = 0x801615D0;//size:0xC
+305
View File
@@ -0,0 +1,305 @@
D_800C57EC = 0x800C57EC;
D_800C7380 = 0x800C7380;
D_800C5FF4 = 0x800C5FF4; //type:u16 size:5000
func_800080C0 = 0x800080C0;
func_80008364 = 0x80008364;
func_80008780 = 0x80008780;
func_80009124 = 0x80009124;
func_80009504 = 0x80009504;
func_8000967C = 0x8000967C;
func_800097A8 = 0x800097A8;
func_800098DC = 0x800098DC;
func_80009984 = 0x80009984;
func_80009A2C = 0x80009A2C;
func_80009AAC = 0x80009AAC;
func_80009B64 = 0x80009B64;
func_80009D78 = 0x80009D78;
func_8000A128 = 0x8000A128;
func_8000A25C = 0x8000A25C;
func_8000A700 = 0x8000A700;
func_8000B3F0 = 0x8000B3F0;
func_8000B480 = 0x8000B480;
func_8000B51C = 0x8000B51C;
func_8000B98C = 0x8000B98C;
func_8000BC70 = 0x8000BC70;
func_8000BD38 = 0x8000BD38;
func_8000BE24 = 0x8000BE24;
func_8000BE94 = 0x8000BE94;
func_8000BF14 = 0x8000BF14;
func_8000BF6C = 0x8000BF6C;
func_8000BF94 = 0x8000BF94;
func_8000BFA8 = 0x8000BFA8;
func_8000BFD8 = 0x8000BFD8;
func_8000BFE8 = 0x8000BFE8;
func_8000C044 = 0x8000C044;
func_8000C0C0 = 0x8000C0C0;
func_8000C13C = 0x8000C13C;
func_8000C1F8 = 0x8000C1F8;
func_8000C2B4 = 0x8000C2B4;
func_8000C990 = 0x8000C990;
func_8000C9E8 = 0x8000C9E8;
func_8000CAF4 = 0x8000CAF4;
func_8000CEC8 = 0x8000CEC8;
func_8000D08C = 0x8000D08C;
func_8000D104 = 0x8000D104;
func_8000D4A8 = 0x8000D4A8;
func_8000DB0C = 0x8000DB0C;
func_8000DB64 = 0x8000DB64;
func_8000DBE4 = 0x8000DBE4;
func_8000DC34 = 0x8000DC34;
func_8000DC84 = 0x8000DC84;
func_8000DCD4 = 0x8000DCD4;
func_8000DD68 = 0x8000DD68;
func_8000DFFC = 0x8000DFFC;
func_8000E1C4 = 0x8000E1C4;
func_8000E208 = 0x8000E208;
func_8000E290 = 0x8000E290;
func_8000E4A0 = 0x8000E4A0;
func_8000E5A8 = 0x8000E5A8;
func_8000E8E0 = 0x8000E8E0;
func_8000EBB4 = 0x8000EBB4;
func_8000EC14 = 0x8000EC14;
func_8000ECC0 = 0x8000ECC0;
func_8000ED28 = 0x8000ED28;
func_8000EE14 = 0x8000EE14;
func_8000EEE4 = 0x8000EEE4;
func_8000EF48 = 0x8000EF48;
func_8000F010 = 0x8000F010;
func_8000F078 = 0x8000F078;
func_8000F158 = 0x8000F158;
func_8000F200 = 0x8000F200;
func_8000F220 = 0x8000F220;
func_8000F354 = 0x8000F354;
func_8000F388 = 0x8000F388;
func_8000F478 = 0x8000F478;
func_8000F554 = 0x8000F554;
func_8000F790 = 0x8000F790;
func_8000F7CC = 0x8000F7CC;
func_8000F820 = 0x8000F820;
func_8000F864 = 0x8000F864;
func_8000FA28 = 0x8000FA28;
func_8000FB50 = 0x8000FB50;
func_8000FBA8 = 0x8000FBA8;
func_8000FC7C = 0x8000FC7C;
func_8000FC8C = 0x8000FC8C;
func_8000FCA0 = 0x8000FCA0;
func_8000FCC0 = 0x8000FCC0;
func_8000FF9C = 0x8000FF9C;
func_8000FFCC = 0x8000FFCC;
func_800105EC = 0x800105EC;
func_8001079C = 0x8001079C;
func_80010808 = 0x80010808;
func_80010870 = 0x80010870;
func_800109FC = 0x800109FC;
func_80010A80 = 0x80010A80;
func_80010AD8 = 0x80010AD8;
func_80010BF0 = 0x80010BF0;
func_80010C60 = 0x80010C60;
func_80010EFC = 0x80010EFC;
func_80010F8C = 0x80010F8C;
func_80010FE4 = 0x80010FE4;
func_80011120 = 0x80011120;
func_8001154C = 0x8001154C;
func_80011710 = 0x80011710;
func_80011758 = 0x80011758;
func_80011890 = 0x80011890;
func_80011C58 = 0x80011C58;
func_80011D10 = 0x80011D10;
func_80011D4C = 0x80011D4C;
func_80011DFC = 0x80011DFC;
func_80011EB8 = 0x80011EB8;
func_80011F4C = 0x80011F4C;
func_80011FA8 = 0x80011FA8;
func_80012438 = 0x80012438;
func_8001266C = 0x8001266C;
func_8001268C = 0x8001268C;
func_800126AC = 0x800126AC;
func_800127B0 = 0x800127B0;
func_80012854 = 0x80012854;
func_80012864 = 0x80012864;
func_800128B4 = 0x800128B4;
func_80012964 = 0x80012964;
func_80012AC4 = 0x80012AC4;
func_80012C00 = 0x80012C00;
func_80012C40 = 0x80012C40;
func_80012C6C = 0x80012C6C;
func_80012CEC = 0x80012CEC;
func_80012E28 = 0x80012E28;
func_80012E5C = 0x80012E5C;
func_80012E88 = 0x80012E88;
func_80012ED4 = 0x80012ED4;
func_80012F24 = 0x80012F24;
func_8001301C = 0x8001301C;
func_800132E8 = 0x800132E8;
func_80013400 = 0x80013400;
func_800135A8 = 0x800135A8;
func_80013708 = 0x80013708;
func_800137DC = 0x800137DC;
func_80013820 = 0x80013820;
func_80013A18 = 0x80013A18;
func_80013A84 = 0x80013A84;
func_80013B6C = 0x80013B6C;
func_80013B90 = 0x80013B90;
func_80013EA0 = 0x80013EA0;
func_80013FC4 = 0x80013FC4;
func_800140D0 = 0x800140D0;
func_8001410C = 0x8001410C;
func_8001415C = 0x8001415C;
func_800141C8 = 0x800141C8;
func_80014244 = 0x80014244;
func_80014370 = 0x80014370;
func_80014440 = 0x80014440;
func_800144E4 = 0x800144E4;
func_800145BC = 0x800145BC;
func_800145FC = 0x800145FC;
func_8001463C = 0x8001463C;
func_800146C0 = 0x800146C0;
func_800146D4 = 0x800146D4;
func_80014704 = 0x80014704;
func_80014748 = 0x80014748;
func_800152C0 = 0x800152C0;
func_80015330 = 0x80015330;
func_800153C4 = 0x800153C4;
func_800153E8 = 0x800153E8;
func_80015FD4 = 0x80015FD4;
func_8001678C = 0x8001678C;
func_80016804 = 0x80016804;
func_800168BC = 0x800168BC;
func_80016A50 = 0x80016A50;
func_80016A58 = 0x80016A58;
func_80016BC0 = 0x80016BC0;
func_80016CDC = 0x80016CDC;
func_80016EE4 = 0x80016EE4;
func_80016FF0 = 0x80016FF0;
func_80017360 = 0x80017360;
func_80017494 = 0x80017494;
func_80017550 = 0x80017550;
func_80017588 = 0x80017588;
func_80017600 = 0x80017600;
func_80017760 = 0x80017760;
func_800177C8 = 0x800177C8;
func_800182F4 = 0x800182F4;
func_8001831C = 0x8001831C;
func_8001839C = 0x8001839C;
func_80018410 = 0x80018410;
func_80018470 = 0x80018470;
func_800184D4 = 0x800184D4;
func_800184EC = 0x800184EC;
func_800185A0 = 0x800185A0;
func_800185F8 = 0x800185F8;
func_80018E9C = 0x80018E9C;
func_80018EE0 = 0x80018EE0;
func_80018FA4 = 0x80018FA4;
func_80019068 = 0x80019068;
func_800190E4 = 0x800190E4;
func_80019158 = 0x80019158;
func_800191BC = 0x800191BC;
Audio_PlaySfx = 0x80019218;
func_80019290 = 0x80019290;
func_80019434 = 0x80019434;
func_800197AC = 0x800197AC;
func_800198C0 = 0x800198C0;
func_8001A01C = 0x8001A01C;
func_8001A290 = 0x8001A290;
func_8001A38C = 0x8001A38C;
func_8001A4B8 = 0x8001A4B8;
Audio_KillSfx = 0x8001A500;
func_8001A55C = 0x8001A55C;
func_8001A6C4 = 0x8001A6C4;
func_8001A838 = 0x8001A838;
func_8001A988 = 0x8001A988;
func_8001A9EC = 0x8001A9EC;
func_8001AA90 = 0x8001AA90;
func_8001AAE4 = 0x8001AAE4;
func_8001AB50 = 0x8001AB50;
func_8001ACDC = 0x8001ACDC;
func_8001AD00 = 0x8001AD00;
func_8001AD44 = 0x8001AD44;
func_8001AE58 = 0x8001AE58;
func_8001AE78 = 0x8001AE78;
func_8001AED4 = 0x8001AED4;
func_8001AF40 = 0x8001AF40;
func_8001AF50 = 0x8001AF50;
func_8001AF9C = 0x8001AF9C;
func_8001B014 = 0x8001B014;
func_8001B454 = 0x8001B454;
func_8001B774 = 0x8001B774;
func_8001BA40 = 0x8001BA40;
func_8001BB74 = 0x8001BB74;
func_8001BC20 = 0x8001BC20;
func_8001BC48 = 0x8001BC48;
func_8001BD0C = 0x8001BD0C;
func_8001BFC0 = 0x8001BFC0;
func_8001C3EC = 0x8001C3EC;
func_8001C8B8 = 0x8001C8B8;
func_8001CA24 = 0x8001CA24;
func_8001CB80 = 0x8001CB80;
func_8001CCDC = 0x8001CCDC;
func_8001CE28 = 0x8001CE28;
func_8001CEFC = 0x8001CEFC;
func_8001CF60 = 0x8001CF60;
func_8001CFA8 = 0x8001CFA8;
func_8001D034 = 0x8001D034;
func_8001D0B4 = 0x8001D0B4;
func_8001D10C = 0x8001D10C;
func_8001D15C = 0x8001D15C;
func_8001D1C8 = 0x8001D1C8;
func_8001D2FC = 0x8001D2FC;
func_8001D3A0 = 0x8001D3A0;
func_8001D400 = 0x8001D400;
func_8001D410 = 0x8001D410;
func_8001D444 = 0x8001D444;
func_8001D4AC = 0x8001D4AC;
func_8001D520 = 0x8001D520;
func_8001D638 = 0x8001D638;
func_8001D6DC = 0x8001D6DC;
func_8001D780 = 0x8001D780;
func_8001D8A8 = 0x8001D8A8;
func_8001D8F4 = 0x8001D8F4;
func_8001D9E0 = 0x8001D9E0;
func_8001DA90 = 0x8001DA90;
func_8001DBD0 = 0x8001DBD0;
func_8001DC2C = 0x8001DC2C;
func_8001DC6C = 0x8001DC6C;
func_8001DCB4 = 0x8001DCB4;
func_8001DCE0 = 0x8001DCE0;
func_8001DD40 = 0x8001DD40;
func_8001DE1C = 0x8001DE1C;
func_8001DECC = 0x8001DECC;
func_8001DF50 = 0x8001DF50;
func_8001E444 = 0x8001E444;
func_8001E720 = 0x8001E720;
func_8001E778 = 0x8001E778;
func_8001E7C8 = 0x8001E7C8;
func_8001E850 = 0x8001E850;
func_8001E8A8 = 0x8001E8A8;
func_8001E8CC = 0x8001E8CC;
func_8001E8F0 = 0x8001E8F0;
func_8001E920 = 0x8001E920;
func_8001E998 = 0x8001E998;
func_8001E9AC = 0x8001E9AC;
func_8001ECAC = 0x8001ECAC;
func_8001ED14 = 0x8001ED14;
func_8001ED34 = 0x8001ED34;
func_8001ED8C = 0x8001ED8C;
func_8001EE00 = 0x8001EE00;
func_8001EE3C = 0x8001EE3C;
+133 -28
View File
@@ -1,3 +1,6 @@
//fox_display
D_Timer_800CA238 = 0x800CA238;
//fox_std_lib
Graphics_ClearPrintBuffer = 0x80099980;
Graphics_Printf = 0x800999D8;
@@ -146,7 +149,7 @@ gSaveFile = 0x80178870; //size:0x200
// fox_edisplay
func_800596C0 = 0x800596C0;
func_800597C0 = 0x800597C0;
func_8005980C = 0x8005980C;
Graphics_SetScaleMtx = 0x8005980C;
func_80059850 = 0x80059850;
func_800598DC = 0x800598DC;
func_800598E8 = 0x800598E8;
@@ -223,18 +226,18 @@ Object_2F4_Initialize = 0x800613C4;
Object_408_Initialize = 0x80061404;
Item_Initialize = 0x80061444;
Object_8C_Initialize = 0x80061474;
Object_80_Spawn = 0x800614B4;
Object_4C_Spawn = 0x800615A0;
Object_2F4_Spawn = 0x8006168C;
Object_408_Spawn = 0x80061778;
Item_Spawn = 0x80061864;
Object_80_Load = 0x800614B4;
Object_4C_Load = 0x800615A0;
Object_2F4_Load = 0x8006168C;
Object_408_Load = 0x80061778;
Item_Load = 0x80061864;
func_80061958 = 0x80061958;
func_80061A4C = 0x80061A4C;
func_80061B68 = 0x80061B68;
func_80061CD0 = 0x80061CD0;
func_80061E48 = 0x80061E48;
func_80061F0C = 0x80061F0C;
Object_Spawn = 0x80062180;
Object_Load = 0x80062180;
func_80062568 = 0x80062568;
func_80062664 = 0x80062664;
func_80062B60 = 0x80062B60;
@@ -310,7 +313,7 @@ Object_UpdateAll = 0x8006A3E8;
// fox_game
D_80161A10 = 0x80161A10;
D_80161A14 = 0x80161A14;
D_80161A18 = 0x80161A18; //size:0x10
gPlayerInactive = 0x80161A18; //size:0x10
D_80161A28 = 0x80161A28;
D_80161A2C = 0x80161A2C;
D_80161A2E = 0x80161A2E;
@@ -351,7 +354,7 @@ gMedalStatus = 0x801617B4;
D_80161A50 = 0x80161A50;
D_80161A54 = 0x80161A54;
D_80161A5C = 0x80161A5C;
D_80161A60 = 0x80161A60;
D_Timer_80161A60 = 0x80161A60;
D_80161A62 = 0x80161A62;
D_80161A64 = 0x80161A64;
sEnvSettings = 0x80161A68;
@@ -394,7 +397,7 @@ D_8017782C = 0x8017782C;
D_80177830 = 0x80177830;
gGameState = 0x80177834;
D_80177838 = 0x80177838;
D_8017783C = 0x8017783C;
D_Timer_8017783C = 0x8017783C;
D_80177840 = 0x80177840;
D_80177848 = 0x80177848;
D_8017784C = 0x8017784C;
@@ -403,11 +406,11 @@ D_80177854 = 0x80177854;
D_80177858 = 0x80177858;
D_80177868 = 0x80177868;
D_80177870 = 0x80177870;
gAllRangeMode = 0x80177880;
D_80177888 = 0x80177888;
D_80177898 = 0x80177898;
gLevelMode = 0x80177880;
gHandicap = 0x80177888;
gDrawMode = 0x80177898;
gVersusStage = 0x8017789C;
D_801778A0 = 0x801778A0;
gPlayerNum = 0x801778A0;
D_801778A4 = 0x801778A4;
gCamCount = 0x801778A8;
D_801778AB = 0x801778AB;
@@ -416,13 +419,14 @@ gTeamShields = 0x801778B0; //size:0x18
D_801778C8 = 0x801778C8;
gSavedTeamShields = 0x801778D0; //size:0x18
gVersusMode = 0x801778E8;
D_80177908 = 0x80177908;
D_80177910 = 0x80177910;
D_80177928 = 0x80177928;
D_801778F0 = 0x801778F0;//size=0x18
gBoostButton = 0x80177908;
gTeamDamage = 0x80177910;
gBrakeButton = 0x80177928;
D_80177930 = 0x80177930;
D_80177938 = 0x80177938;
gShootButton = 0x80177938;
D_80177940 = 0x80177940;
D_80177948 = 0x80177948;
gBombButton = 0x80177948;
D_80177950 = 0x80177950;
D_80177958 = 0x80177958;
gInputHold = 0x80177974;
@@ -435,15 +439,17 @@ D_801779A0 = 0x801779A0;
D_801779A8 = 0x801779A8;
D_801779B8 = 0x801779B8;
D_801779C0 = 0x801779C0;
D_801779C8 = 0x801779C8;
gChargeTimers = 0x801779C8;
D_801779D8 = 0x801779D8;
D_801779E8 = 0x801779E8;
gExpertMode = 0x801779F8;
D_Timer_80177A00 = 0x80177A00;
D_80177A10 = 0x80177A10;//size:0x28
D_Timer_80177A38 = 0x80177A38;
D_80177A48 = 0x80177A48;//size:0x28
D_80177A70 = 0x80177A70;//size:0x10
D_Timer_80177A70 = 0x80177A70;//size:0x10
D_80177A80 = 0x80177A80;
D_80177A88 = 0x80177A88;//size:0x10
D_Timer_80177A88 = 0x80177A88;//size:0x10
D_80177A98 = 0x80177A98;
D_80177AA0 = 0x80177AA0;
D_80177AB0 = 0x80177AB0;
@@ -452,15 +458,17 @@ D_80177AC8 = 0x80177AC8;
D_80177AD0 = 0x80177AD0;
D_80177AE0 = 0x80177AE0;
D_80177AE8 = 0x80177AE8;
D_80177AF8 = 0x80177AF8;
gMainController = 0x80177AF8;
D_80177B00 = 0x80177B00;
D_80177B40 = 0x80177B40;
D_Timer_80177B44 = 0x80177B44;
D_80177B48 = 0x80177B48;
D_80177B50 = 0x80177B50;
D_80177B70 = 0x80177B70;
D_80177B8C = 0x80177B8C;
D_80177B90 = 0x80177B90;
D_80177BB0 = 0x80177BB0;
D_Timer_80177BD0 = 0x80177BD0;
D_80177C30 = 0x80177C30;
D_80177C50 = 0x80177C50;
gSoundMode = 0x80177C74;
@@ -508,11 +516,11 @@ D_8017828C = 0x8017828C;
D_80178290 = 0x80178290;
D_80178294 = 0x80178294;
D_80178298 = 0x80178298;
D_8017829C = 0x8017829C;
gRadioState = 0x8017829C;
D_801782A4 = 0x801782A4;
gObjects58 = 0x801782A8;
D_801782AC = 0x801782AC;
D_801782B4 = 0x801782B4;
D_Timer_801782AC = 0x801782AC;
D_Timer_801782B4 = 0x801782B4;
D_801782B8 = 0x801782B8;
D_801782BC = 0x801782BC;
D_801782C0 = 0x801782C0;
@@ -540,8 +548,6 @@ D_80178364 = 0x80178364;
D_80178368 = 0x80178368;
D_8017836C = 0x8017836C;
D_80178370 = 0x80178370;
D_80178374 = 0x80178374;
D_80178378 = 0x80178378;
D_80178380 = 0x80178380;
D_80178390 = 0x80178390;
D_801783A0 = 0x801783A0;
@@ -607,4 +613,103 @@ D_80178574 = 0x80178574;
D_80178578 = 0x80178578;
Play_GetMaxShields = 0x800A3FC4;
func_800A3FB0 = 0x800A3FB0;
Play_CheckMedalStatus = 0x800A3F50;
func_800A3FEC = 0x800A3FEC;
func_800A4460 = 0x800A4460;
func_800A46A0 = 0x800A46A0;
func_800A4C40 = 0x800A4C40;
func_800A4F4C = 0x800A4F4C;
func_800A4F7C = 0x800A4F7C;
func_800A5330 = 0x800A5330;
func_800A5338 = 0x800A5338;
func_800A55B0 = 0x800A55B0;
func_800A57E0 = 0x800A57E0;
func_800A5844 = 0x800A5844;
func_800A594C = 0x800A594C;
func_800A5D6C = 0x800A5D6C;
func_800A5EBC = 0x800A5EBC;
func_800A5FA0 = 0x800A5FA0;
func_800A6028 = 0x800A6028;
func_800A6070 = 0x800A6070;
func_800A60B8 = 0x800A60B8;
func_800A60E8 = 0x800A60E8;
func_800A6118 = 0x800A6118;
func_800A6148 = 0x800A6148;
func_800A6590 = 0x800A6590;
func_800A668C = 0x800A668C;
func_800A670C = 0x800A670C;
func_800A69F8 = 0x800A69F8;
func_800A6A74 = 0x800A6A74;
Player_DamageWings = 0x800A6AC0;
Player_ApplyDamage = 0x800A6CD0;
func_800A729C = 0x800A729C;
func_800A73E4 = 0x800A73E4;
func_800A78C4 = 0x800A78C4;
func_800A7974 = 0x800A7974;
func_800A8054 = 0x800A8054;
func_800A8304 = 0x800A8304;
func_800A86E4 = 0x800A86E4;
func_800A8804 = 0x800A8804;
func_800A887C = 0x800A887C;
func_800A8BA4 = 0x800A8BA4;
func_800AA800 = 0x800AA800;
func_800AB2AC = 0x800AB2AC;
func_800AB304 = 0x800AB304;
func_800AB334 = 0x800AB334;
func_800AB964 = 0x800AB964;
func_800ABA08 = 0x800ABA08;
func_800ABAB4 = 0x800ABAB4;
func_800AC290 = 0x800AC290;
func_800AC650 = 0x800AC650;
func_800ACA40 = 0x800ACA40;
func_800ACABC = 0x800ACABC;
func_800ACC7C = 0x800ACC7C;
func_800ACDC0 = 0x800ACDC0;
func_800AD094 = 0x800AD094;
func_800AD118 = 0x800AD118;
func_800AD1F4 = 0x800AD1F4;
func_800AD7F0 = 0x800AD7F0;
func_800ADA28 = 0x800ADA28;
func_800ADD98 = 0x800ADD98;
func_800ADF58 = 0x800ADF58;
func_800AE278 = 0x800AE278;
func_800AE4A4 = 0x800AE4A4;
func_800AECAC = 0x800AECAC;
func_800AF07C = 0x800AF07C;
func_800AF928 = 0x800AF928;
func_800B00C0 = 0x800B00C0;
func_800B0194 = 0x800B0194;
func_800B0F50 = 0x800B0F50;
func_800B2130 = 0x800B2130;
func_800B22C0 = 0x800B22C0;
func_800B2574 = 0x800B2574;
func_800B2BE0 = 0x800B2BE0;
func_800B2C00 = 0x800B2C00;
func_800B3010 = 0x800B3010;
func_800B3314 = 0x800B3314;
func_800B39E0 = 0x800B39E0;
func_800B40AC = 0x800B40AC;
func_800B415C = 0x800B415C;
func_800B41E0 = 0x800B41E0;
func_800B41EC = 0x800B41EC;
func_800B42B0 = 0x800B42B0;
func_800B44C4 = 0x800B44C4;
func_800B46F8 = 0x800B46F8;
func_800B48BC = 0x800B48BC;
func_800B56BC = 0x800B56BC;
func_800B5D30 = 0x800B5D30;
func_800B5FBC = 0x800B5FBC;
func_800B63BC = 0x800B63BC;
func_800B6848 = 0x800B6848;
func_800B6BFC = 0x800B6BFC;
func_800B6F50 = 0x800B6F50;
func_800B7184 = 0x800B7184;
func_800B71E4 = 0x800B71E4;
func_800B73E0 = 0x800B73E0;
func_800B79B0 = 0x800B79B0;
func_800B832C = 0x800B832C;
func_800B852C = 0x800B852C;
func_800B86A4 = 0x800B86A4;
func_800B86CC = 0x800B86CC;
+3 -2
View File
@@ -1,8 +1,9 @@
// rsp
__rspboot_start = 0x80000450;//name_end:__rspboot_end
__aspmain_start = 0x80000520;//name_end:__aspmain_end
__f3dex_start = 0x80001410;
gF3dexData = 0x800C3DD0;
__f3dex_start = 0x80001410;//name_end:__f3dex_end
gF3dexData = 0x800C3DD0; //name_end:gF3dexData_end
gAspMainData = 0x800C32E0; //name_end:gAspMainData_end
// sys_joybus
gControllerHold = 0x800DD880; // size:0x18
+9 -9
View File
@@ -70,11 +70,11 @@ void func_80042FF4(Object_2F4* obj2F4, f32 arg1, f32 arg2, f32 arg3, f32 arg4, f
obj2F4->unk_0E8.x = arg7;
obj2F4->unk_0E8.y = arg8;
obj2F4->unk_0E8.z = arg9;
obj2F4->unk_110 = argA;
obj2F4->unk_0BC = argC;
obj2F4->unk_0BE = 20;
obj2F4->scale = argA;
obj2F4->timer_0BC = argC;
obj2F4->timer_0BE = 20;
Object_SetInfo(&obj2F4->info, obj2F4->obj.id);
if (gLevelType == LEVELTYPE_GROUND) {
if (gLevelType == LEVELTYPE_PLANET) {
obj2F4->unk_10C = 0.5f;
}
}
@@ -104,14 +104,14 @@ void func_8004319C(Player* player, f32 arg1, f32 arg2, f32 arg3) {
D_80178440 = arg1;
D_80178444 = arg2;
player->unk_1C8 = 7;
player->state_1C8 = PLAYERSTATE_1C8_7;
player->unk_1D0 = 10;
player->unk_1F8 = 50;
player->unk_1FC = 50;
player->timer_1F8 = 50;
player->timer_1FC = 50;
player->unk_000 = 0.0f;
player->unk_004 = 1.0f;
if (player->unk_074 < player->unk_0AC) {
if (player->pos.x < player->unk_0AC) {
player->unk_004 = -1.0f;
}
gPlayer[0].unk_0C0.x = 0.0f;
gPlayer[0].vel.x = 0.0f;
}
+311 -307
View File
File diff suppressed because it is too large Load Diff
+7 -7
View File
@@ -5,8 +5,8 @@ void func_800A3CA0(void) {
Matrix_LookAt(gGfxMatrix, D_80177978, D_80177980, D_80177988, D_801779A0, D_801779B8, D_801779C0, 0.0f, 1.0f, 0.0f,
1);
Matrix_Translate(gGfxMatrix, 0.0f, 0.0f, -200.0f, 1);
Matrix_RotateY(gGfxMatrix, gControllerPress[D_801778A0].stick_x * M_DTOR, 1);
Matrix_RotateX(gGfxMatrix, gControllerPress[D_801778A0].stick_y * M_DTOR, 1);
Matrix_RotateY(gGfxMatrix, gControllerPress[gPlayerNum].stick_x * M_DTOR, 1);
Matrix_RotateX(gGfxMatrix, gControllerPress[gPlayerNum].stick_y * M_DTOR, 1);
Matrix_SetGfxMtx(&gMasterDisp);
RCP_SetupDL_23();
Matrix_Pop(&gGfxMatrix);
@@ -15,13 +15,13 @@ void func_800A3CA0(void) {
void func_800A3E00(void) {
switch (D_80177868) {
case 0:
if (D_8017783C == 0) {
if (D_Timer_8017783C == 0) {
D_80177868 = 1;
}
break;
case 1:
D_80177868 = 2;
D_80177898 = 7;
gDrawMode = DRAWMODE_7;
D_801779B8 = 0.0f;
D_801779A0 = D_801779B8;
D_80177988 = D_801779A0;
@@ -33,13 +33,13 @@ void func_800A3E00(void) {
if ((gControllerPress[0].button & START_BUTTON) || (gControllerPress[1].button & START_BUTTON)) {
func_8001D638(0);
D_80177868 = 3;
D_80177898 = 0;
gDrawMode = DRAWMODE_0;
func_800A5844();
D_8017783C = 0;
D_Timer_8017783C = 0;
}
break;
case 3:
if (D_8017783C == 0) {
if (D_Timer_8017783C == 0) {
D_80177854 = 2;
}
break;
+181 -176
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -927,7 +927,7 @@ ObjectInfo D_800CC124[0x190] = {
/* OBJ_ITEM_331 */ {(void*) NULL, 1, (ObjectFunc) func_80068C88, D_800CBF8C, 1500.0f, 0, 0, 0, 0, 0.0f, 0 },
/* OBJ_ITEM_332 */ {(void*) NULL, 1, (ObjectFunc) func_80068C88, D_800CBF8C, 1500.0f, 0, 0, 0, 0, 0.0f, 0 },
/* OBJ_ITEM_333 */ {(void*) NULL, 1, (ObjectFunc) func_80068C88, D_800CBF8C, 1500.0f, 0, 0, 0, 0, 0.0f, 0 },
/* OBJ_ITEM_CORN_ARCH */ {(void*) NULL, 1, (ObjectFunc) func_80068C48, D_800CBF18, 700.0f, 0, 0, 0, 0, 0.0f, 0 },
/* OBJ_ITEM_334 */ {(void*) NULL, 1, (ObjectFunc) func_80068C48, D_800CBF18, 700.0f, 0, 0, 0, 0, 0.0f, 0 },
/* OBJ_ITEM_1UP */ {(void*) D_1022120, 0, (ObjectFunc) func_80067B1C, D_800CBE8C, 700.0f, 0, 0, 0, 0, 0.0f, 0 },
/* OBJ_ITEM_GOLD_RING */ {(void*) func_8005CA80, 1, (ObjectFunc) func_800685F8, D_800CBF54, 700.0f, 0, 0, 0, 0, 0.0f, 0 },
/* OBJ_ITEM_WING_REPAIR */ {(void*) D_3007650, 0, (ObjectFunc) func_80068618, D_800CBFA8, 700.0f, 0, 0, 0, 0, 0.0f, 0 },
+95 -90
View File
File diff suppressed because it is too large Load Diff
+255 -253
View File
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More