mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
Clean up code, remove fakematches, add UNUSED, enable warnings (#2992)
* Remove NDEBUG_DEFINED fakematch, clean up getName temps * Fix ifdef * Fix bad JSystem pch ifdef breaking decomp.me * Remove Acch Chk fakematches * Private Acch fields * Fix some clangd errors in headers * Add UNUSED macro for matching debug parameters * Enable clangd unused-parameter warning * Remove extern from initializers Probably added by dol2asm? * Fix process profile definitions * Remove leftover dol2asm address comments * Remove some unnecessary double casts * Enable some more clangd warnings * Fix missing usages of fopAcM_ct * Fix wrong enum usage * Fix more fakematches
This commit is contained in:
@@ -137,7 +137,7 @@ public:
|
||||
}
|
||||
|
||||
void setSpeed(f32 param_0, f32 param_1, f32* param_2, int param_3) {
|
||||
(void)param_3;
|
||||
UNUSED(param_3);
|
||||
f32 target = field_0xb5c * (param_1 * field_0xb5c);
|
||||
f32 step = field_0xb5c * (param_0 * field_0xb5c);
|
||||
if (param_1 < target) {
|
||||
|
||||
@@ -29,33 +29,26 @@ public:
|
||||
void setActionMode(int);
|
||||
f32 setAddCalcSpeedXZ(cXyz&, cXyz const&, f32, f32, f32);
|
||||
cXyz chaseTargetPos(cXyz, f32, f32, s16);
|
||||
/* 80B01D84 */
|
||||
fopAc_ac_c* getMasterPointer();
|
||||
void setMasterShoulder(cXyz*);
|
||||
void setAwayAction(int);
|
||||
void setFlySE();
|
||||
void executeFly();
|
||||
void initPerchDemo(int);
|
||||
/* 80B02B5C */
|
||||
bool executePerchDemo(int);
|
||||
void executePerch();
|
||||
void executeHandOn();
|
||||
/* 80B039A8 */
|
||||
bool checkWaterSurface(f32);
|
||||
void executeAttack();
|
||||
void executeAway();
|
||||
void setCarryActorMtx();
|
||||
/* 80B04F64 */
|
||||
f32 getTakePosY();
|
||||
/* 80B04FA8 */
|
||||
f32 getTakeOffPosY();
|
||||
void executeBack();
|
||||
/* 80B05BD0 */
|
||||
cXyz getHanjoHandPos();
|
||||
void executeStayHanjo();
|
||||
void executeAttackLink();
|
||||
void executeBackHanjo();
|
||||
/* 80B07114 */
|
||||
bool checkAttackDemo();
|
||||
void executeAttackDemo();
|
||||
void executeBackHanjoDemo();
|
||||
@@ -74,7 +67,6 @@ public:
|
||||
void cc_set();
|
||||
int execute();
|
||||
int _delete();
|
||||
/* 80B0B9AC */
|
||||
int ctrlJoint(J3DJoint*, J3DModel*);
|
||||
static int JointCallBack(J3DJoint*, int);
|
||||
int CreateHeap();
|
||||
|
||||
@@ -57,7 +57,6 @@ STATIC_ASSERT(sizeof(daLv6SwGate_c) == 0x14f8);
|
||||
|
||||
class daLv6SwGate_HIO_c : public fOpAcm_HIO_entry_c {
|
||||
public:
|
||||
/* 80C73F0C */
|
||||
daLv6SwGate_HIO_c();
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
@@ -81,7 +81,7 @@ private:
|
||||
/* 0x094E */ bool mIsInWater;
|
||||
/* 0x094F */ u8 field_0x094f;
|
||||
/* 0x0950 */ u8 field_0x0950;
|
||||
/* 0x0951 */ u8 field_0x0951;
|
||||
/* 0x0951 */ bool field_0x0951;
|
||||
/* 0x0954 */ u32 field_0x0954;
|
||||
/* 0x0954 */ u32 field_0x0958;
|
||||
/* 0x0954 */ u32 field_0x095c;
|
||||
|
||||
@@ -195,7 +195,7 @@ public:
|
||||
f32 GetCx() const { return pm_pos->x; }
|
||||
f32 GetCz() const { return pm_pos->z; }
|
||||
|
||||
public:
|
||||
private:
|
||||
/* 0x02C */ u32 m_flags;
|
||||
/* 0x030 */ cXyz* pm_pos;
|
||||
/* 0x034 */ cXyz* pm_old_pos;
|
||||
@@ -231,9 +231,11 @@ public:
|
||||
/* 0x0E4 */ cXyz unk_0xe4;
|
||||
#endif
|
||||
/* 0x0D8 */ f32 field_0xd8;
|
||||
public:
|
||||
/* 0x0DC */ dBgS_GndChk m_gnd;
|
||||
/* 0x130 */ dBgS_RoofChk m_roof;
|
||||
/* 0x180 */ dBgS_WtrChk m_wtr;
|
||||
private:
|
||||
/* 0x1D4 */ u8 m_wtr_mode;
|
||||
}; // Size: 0x1D8
|
||||
|
||||
|
||||
@@ -840,7 +840,7 @@ public:
|
||||
~dComIfG_inf_c() {}
|
||||
void ct();
|
||||
void createBaseCsr();
|
||||
dComIfG_play_c& getPlay() { return play; }
|
||||
dComIfG_play_c& getPlay() { return play; } // fake inline
|
||||
|
||||
#if PLATFORM_WII || VERSION == VERSION_SHIELD_DEBUG
|
||||
class baseCsr_c : public mDoGph_gInf_c::csr_c {
|
||||
|
||||
@@ -24,7 +24,7 @@ public:
|
||||
/* 0x1C */ f32 mBank;
|
||||
struct {
|
||||
/* 0x20 */ fpc_ProcID id;
|
||||
/* 0x24 */ char name[8];
|
||||
/* 0x24 */ char name[dStage_NAME_LENGTH];
|
||||
} mActorInfo;
|
||||
/* 0x2C */ int mAction;
|
||||
/* 0x30 */ int mTimer;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef D_MENU_D_MENU_FMAP_H
|
||||
#define D_MENU_D_MENU_FMAP_H
|
||||
|
||||
#include "JSystem/JHostIO/JORReflexible.h"
|
||||
#include "SSystem/SComponent/c_xyz.h"
|
||||
#include "d/d_menu_map_common.h"
|
||||
#include "d/d_msg_flow.h"
|
||||
|
||||
@@ -141,13 +141,13 @@ public:
|
||||
virtual void genMessage(JORMContext*);
|
||||
virtual u32 addString(char* param_1, u32 param_2, u32 param_3) { return field_0xc.addString(param_1, param_2, param_3); }
|
||||
virtual u32 addData(char* param_1, u32 param_2, u32 param_3) {
|
||||
(void)param_2;
|
||||
(void)param_3;
|
||||
UNUSED(param_2);
|
||||
UNUSED(param_3);
|
||||
memcpy(param_1, dMfm_HIO_prm_res_dst_s::m_res, 366);
|
||||
return 366;
|
||||
}
|
||||
virtual void copyReadBufToData(const char* param_1, s32 param_2) {
|
||||
(void)param_2;
|
||||
UNUSED(param_2);
|
||||
field_0xc.copyBufToHio(param_1);
|
||||
}
|
||||
virtual u32 addStringBinary(char* param_1, u32 param_2, u32 param_3) { return field_0xc.addStringBinary(param_1, param_2, param_3); }
|
||||
|
||||
@@ -124,10 +124,7 @@ public:
|
||||
void resetPauseStatus() { mPauseStatus = 0; }
|
||||
u8 getPauseStatus() { return mPauseStatus; }
|
||||
bool isGameStatus(int i_status) { return (mGameStatus & (u16)i_status) != 0 ? true : false; }
|
||||
bool isTouchKeyCheck(int i_status) { return mTouchKeyCheck & (1 << i_status); }
|
||||
|
||||
// fake function, should be isTouchKeyCheck
|
||||
bool isTouchKeyCheck_alt(int i_status) { return (mTouchKeyCheck >> i_status) & 1; }
|
||||
bool isTouchKeyCheck(int i_status) { return mTouchKeyCheck & (u16)(1 << i_status) ? true : false; }
|
||||
|
||||
void setMapKeyDirection(u16 i_direction) { mMapKeyDirection = i_direction; }
|
||||
bool isSub2DStatus(int i_flag) { return (mSub2DStatus & (u16)(1 << i_flag)) != 0 ? true : false; }
|
||||
@@ -486,11 +483,6 @@ inline bool dMeter2Info_isTouchKeyCheck(int i_status) {
|
||||
return g_meter2_info.isTouchKeyCheck(i_status);
|
||||
}
|
||||
|
||||
// fake function, should be dMeter2Info_isTouchKeyCheck
|
||||
inline bool dMeter2Info_isTouchKeyCheck_alt(int i_status) {
|
||||
return g_meter2_info.isTouchKeyCheck_alt(i_status);
|
||||
}
|
||||
|
||||
inline void dMeter2Info_setMapKeyDirection(u16 i_direction) {
|
||||
g_meter2_info.setMapKeyDirection(i_direction);
|
||||
}
|
||||
|
||||
+25
-23
@@ -586,7 +586,7 @@ public:
|
||||
/* vt[38] */ virtual void setVrboxcolNumInfo(int i_VrboxcolNumInfo) { mVrboxcolNumInfo = i_VrboxcolNumInfo; }
|
||||
/* vt[39] */ virtual int getVrboxcolNumInfo(void) const { return mVrboxcolNumInfo; }
|
||||
/* vt[42] */ virtual void setLightVecInfo(stage_pure_lightvec_info_class* i_LightVecInfo) {
|
||||
(void)i_LightVecInfo;
|
||||
UNUSED(i_LightVecInfo);
|
||||
dStage_SetErrorStage();
|
||||
OSReport("stage non LightVec data !!\n");
|
||||
JUT_ASSERT(3003, FALSE);
|
||||
@@ -597,7 +597,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
/* vt[44] */ virtual void setLightVecInfoNum(int i_LightVecInfoNum) {
|
||||
(void)i_LightVecInfoNum;
|
||||
UNUSED(i_LightVecInfoNum);
|
||||
dStage_SetErrorStage();
|
||||
OSReport("stage non LightVecNum data !!\n");
|
||||
JUT_ASSERT(3014, FALSE);
|
||||
@@ -628,7 +628,7 @@ public:
|
||||
/* vt[62] */ virtual void setMapEventInfo(dStage_MapEventInfo_c* i_MapEventInfo) { mMapEventInfo = i_MapEventInfo; }
|
||||
/* vt[63] */ virtual dStage_MapEventInfo_c* getMapEventInfo(void) const { return mMapEventInfo; }
|
||||
/* vt[64] */ virtual void setFileList2Info(dStage_FileList2_dt_c* list) {
|
||||
(void)list;
|
||||
UNUSED(list);
|
||||
dStage_SetErrorStage();
|
||||
OSReport("stage non filelist2 data!\n");
|
||||
JUT_ASSERT(3123, FALSE);
|
||||
@@ -639,7 +639,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
/* vt[66] */ virtual void setFileListInfo(dStage_FileList_dt_c* list) {
|
||||
(void)list;
|
||||
UNUSED(list);
|
||||
dStage_SetErrorStage();
|
||||
OSReport("stage non filelist data!\n");
|
||||
JUT_ASSERT(3138, FALSE);
|
||||
@@ -661,7 +661,7 @@ public:
|
||||
/* vt[77] */ virtual void resetOldMulti(void);
|
||||
/* vt[78] */ virtual dStage_Multi_c* getOldMulti(void) const { return mOldMulti; }
|
||||
/* vt[79] */ virtual void setLbnk(dStage_Lbnk_c* lbnk) {
|
||||
(void)lbnk;
|
||||
UNUSED(lbnk);
|
||||
dStage_SetErrorStage();
|
||||
OSReport("stage non Lbnk data!\n");
|
||||
JUT_ASSERT(3231, FALSE);
|
||||
@@ -746,7 +746,7 @@ public:
|
||||
virtual void setPlayerNum(u16 i_PlayerNum) { mPlayerNum = i_PlayerNum; }
|
||||
virtual u16 getPlayerNum(void) const { return mPlayerNum; }
|
||||
virtual void setRoom(roomRead_class* i_Room) {
|
||||
(void)i_Room;
|
||||
UNUSED(i_Room);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non room data !!\n");
|
||||
JUT_ASSERT(2095, FALSE);
|
||||
@@ -762,7 +762,7 @@ public:
|
||||
virtual void setMapInfoBase(stage_map_info_dummy_class* i_MapInfoBase) { mMapInfoBase = i_MapInfoBase; }
|
||||
virtual stage_map_info_dummy_class* getMapInfoBase(void) const { return mMapInfoBase; }
|
||||
virtual void setPaletteInfo(stage_palette_info_class* i_PaletteInfo) {
|
||||
(void)i_PaletteInfo;
|
||||
UNUSED(i_PaletteInfo);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non palet data !!\n");
|
||||
JUT_ASSERT(2126, FALSE);
|
||||
@@ -773,7 +773,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
virtual void setPselectInfo(stage_pselect_info_class* i_PselectInfo) {
|
||||
(void)i_PselectInfo;
|
||||
UNUSED(i_PselectInfo);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non pselect data !!\n");
|
||||
JUT_ASSERT(2137, FALSE);
|
||||
@@ -784,7 +784,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
virtual void setEnvrInfo(stage_envr_info_class* i_EnvrInfo) {
|
||||
(void)i_EnvrInfo;
|
||||
UNUSED(i_EnvrInfo);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non envr data !!\n");
|
||||
JUT_ASSERT(2148, FALSE);
|
||||
@@ -799,7 +799,7 @@ public:
|
||||
virtual void setVrboxcolInfo(stage_vrboxcol_info_class* i_VrboxcolInfo) { mVrboxcolInfo = i_VrboxcolInfo; }
|
||||
virtual stage_vrboxcol_info_class* getVrboxcolInfo(void) const { return mVrboxcolInfo; }
|
||||
virtual void setPlightInfo(stage_plight_info_class* i_PlightInfo) {
|
||||
(void)i_PlightInfo;
|
||||
UNUSED(i_PlightInfo);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non plight data !!\n");
|
||||
JUT_ASSERT(2174, FALSE);
|
||||
@@ -810,7 +810,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
virtual void setPaletteNumInfo(int i_PaletteNumInfo) {
|
||||
(void)i_PaletteNumInfo;
|
||||
UNUSED(i_PaletteNumInfo);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non palette num data !!\n");
|
||||
JUT_ASSERT(2186, FALSE);
|
||||
@@ -821,7 +821,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
virtual void setPselectNumInfo(int i_PselectNumInfo) {
|
||||
(void)i_PselectNumInfo;
|
||||
UNUSED(i_PselectNumInfo);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non pselect num data !!\n");
|
||||
JUT_ASSERT(2197, FALSE);
|
||||
@@ -832,7 +832,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
virtual void setEnvrNumInfo(int i_EnvrNumInfo) {
|
||||
(void)i_EnvrNumInfo;
|
||||
UNUSED(i_EnvrNumInfo);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non envr num data !!\n");
|
||||
JUT_ASSERT(2208, FALSE);
|
||||
@@ -847,7 +847,7 @@ public:
|
||||
virtual void setVrboxcolNumInfo(int i_VrboxcolNumInfo) { mVrboxcolNumInfo = i_VrboxcolNumInfo; }
|
||||
virtual int getVrboxcolNumInfo(void) const { return mVrboxcolNumInfo; }
|
||||
virtual void setPlightNumInfo(int i_PlightNumInfo) {
|
||||
(void)i_PlightNumInfo;
|
||||
UNUSED(i_PlightNumInfo);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non plight num data !!\n");
|
||||
JUT_ASSERT(2223, FALSE);
|
||||
@@ -862,7 +862,7 @@ public:
|
||||
virtual void setLightVecInfoNum(int i_LightVecInfoNum) { mLightVecInfoNum = i_LightVecInfoNum; }
|
||||
virtual int getLightVecInfoNum(void) const { return mLightVecInfoNum; }
|
||||
virtual void setStagInfo(stage_stag_info_class* i_StagInfo) {
|
||||
(void)i_StagInfo;
|
||||
UNUSED(i_StagInfo);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non stag data !!\n");
|
||||
JUT_ASSERT(2256, FALSE);
|
||||
@@ -875,7 +875,7 @@ public:
|
||||
virtual void setSclsInfo(stage_scls_info_dummy_class* i_SclsInfo) { mSclsInfo = i_SclsInfo; }
|
||||
virtual stage_scls_info_dummy_class* getSclsInfo(void) const { return mSclsInfo; }
|
||||
virtual void setPntInfo(dStage_dPnt_c* i_PntInfo) {
|
||||
(void)i_PntInfo;
|
||||
UNUSED(i_PntInfo);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non Pnt data !\n");
|
||||
JUT_ASSERT(2281, FALSE);
|
||||
@@ -886,7 +886,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
virtual void setPathInfo(dStage_dPath_c* i_PathInfo) {
|
||||
(void)i_PathInfo;
|
||||
UNUSED(i_PathInfo);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non Path data !\n");
|
||||
JUT_ASSERT(2292, FALSE);
|
||||
@@ -913,7 +913,7 @@ public:
|
||||
virtual void setFloorInfo(dStage_FloorInfo_c* i_FloorInfo) { mFloorInfo = i_FloorInfo; }
|
||||
virtual dStage_FloorInfo_c* getFloorInfo(void) const { return mFloorInfo; }
|
||||
virtual void setMemoryConfig(dStage_MemoryConfig_c* i_MemoryConfig) {
|
||||
(void)i_MemoryConfig;
|
||||
UNUSED(i_MemoryConfig);
|
||||
OSReport("Room non memory config data!\n");
|
||||
JUT_ASSERT(2414, FALSE);
|
||||
}
|
||||
@@ -923,7 +923,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
virtual void setMemoryMap(dStage_MemoryMap_c* i_MemoryMap) {
|
||||
(void)i_MemoryMap;
|
||||
UNUSED(i_MemoryMap);
|
||||
OSReport("Room non memory map data!\n");
|
||||
JUT_ASSERT(2433, FALSE);
|
||||
}
|
||||
@@ -933,7 +933,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
virtual void setMulti(dStage_Multi_c* i_Multi) {
|
||||
(void)i_Multi;
|
||||
UNUSED(i_Multi);
|
||||
OSReport("Room non multi data!\n");
|
||||
JUT_ASSERT(2452, FALSE);
|
||||
}
|
||||
@@ -960,7 +960,7 @@ public:
|
||||
virtual void setTresure(stage_tresure_class* i_Tresure) { mTresure = i_Tresure; }
|
||||
virtual stage_tresure_class* getTresure(void) const { return mTresure; }
|
||||
virtual void setDMap(dStage_DMap_c* i_DMap) {
|
||||
(void)i_DMap;
|
||||
UNUSED(i_DMap);
|
||||
OS_REPORT("Room non DMap data\n");
|
||||
JUT_ASSERT(2508, FALSE);
|
||||
}
|
||||
@@ -974,7 +974,7 @@ public:
|
||||
virtual void setDoor(stage_tgsc_class* i_Door) { mDoor = i_Door; }
|
||||
virtual stage_tgsc_class* getDoor(void) const { return mDoor; }
|
||||
virtual void setMapPath(void* i_MapPath) {
|
||||
(void)i_MapPath;
|
||||
UNUSED(i_MapPath);
|
||||
OSReport("stage non 2d map path data !!\n");
|
||||
JUT_ASSERT(2557, FALSE);
|
||||
}
|
||||
@@ -984,7 +984,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
virtual void setElst(dStage_Elst_c* i_Elst) {
|
||||
(void)i_Elst;
|
||||
UNUSED(i_Elst);
|
||||
dStage_SetErrorRoom();
|
||||
OSReport("Room non envLayserSet data\n");
|
||||
JUT_ASSERT(2572, FALSE);
|
||||
@@ -1323,6 +1323,8 @@ void dStage_dt_c_roomLoader(void* i_data, dStage_dt_c* stageDt, int param_2);
|
||||
dStage_KeepDoorInfo* dStage_GetKeepDoorInfo();
|
||||
dStage_KeepDoorInfo* dStage_GetRoomKeepDoorInfo();
|
||||
void dStage_dt_c_fieldMapLoader(void* i_data, dStage_dt_c* i_stage);
|
||||
|
||||
#define dStage_NAME_LENGTH 8
|
||||
const char* dStage_getName(s16 procName, s8 argument);
|
||||
|
||||
#if VERSION == VERSION_WII_USA_R0
|
||||
|
||||
Reference in New Issue
Block a user