mirror of
https://github.com/zeldaret/tp
synced 2026-08-02 00:24:25 -04:00
wii building OK / m_Do_graphic debug work (#2815)
* wii building OK + m_Do_graphic debug work * d_meter_HIO debug cleanup * wii m_Do_graphic stuff * tag_attack_item OK, mirror_chain almost * fix build * mg_fshop matching
This commit is contained in:
@@ -36,7 +36,7 @@ struct fs_rod_s {
|
||||
/* 0x4C */ int field_0x4c;
|
||||
/* 0x50 */ u8 field_0x50[0x54 - 0x50];
|
||||
/* 0x54 */ f32 field_0x54;
|
||||
/* 0x58 */ u8 field_0x58[0x5C - 0x58];
|
||||
/* 0x58 */ s16 field_0x58;
|
||||
};
|
||||
|
||||
struct fs_lure_s {
|
||||
@@ -82,8 +82,9 @@ struct fs_koro2_s {
|
||||
* @details
|
||||
*
|
||||
*/
|
||||
class fshop_class : public fopAc_ac_c {
|
||||
class fshop_class {
|
||||
public:
|
||||
/* 0x0000 */ fopAc_ac_c actor;
|
||||
/* 0x0568 */ request_of_phase_process_class mPhase;
|
||||
/* 0x0570 */ s16 field_0x0570;
|
||||
/* 0x0572 */ s16 field_0x0572;
|
||||
|
||||
@@ -38,7 +38,7 @@ public:
|
||||
/* 80C96E40 */ int createHeap();
|
||||
/* 80C975EC */ void initBaseMtx();
|
||||
/* 80C97618 */ void setBaseMtx();
|
||||
/* 80C976B8 */ int draw();
|
||||
/* 80C976B8 */ inline int draw();
|
||||
/* 80C97988 */ int execute();
|
||||
inline ~daObjMirrorChain_c();
|
||||
inline void create_init();
|
||||
|
||||
@@ -1,5 +1,35 @@
|
||||
#ifndef D_A_TAG_ATTACK_ITEM_H
|
||||
#define D_A_TAG_ATTACK_ITEM_H
|
||||
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
#include "d/d_event_lib.h"
|
||||
#include "d/d_cc_d.h"
|
||||
|
||||
class daTagAtkItem_c : public fopAc_ac_c , public dEvLib_callback_c {
|
||||
public:
|
||||
daTagAtkItem_c() : dEvLib_callback_c(this) {}
|
||||
|
||||
/* 805A2958 */ void setBaseMtx();
|
||||
/* 805A2990 */ int Create();
|
||||
/* 805A2A34 */ int create();
|
||||
/* 805A2C48 */ int execute();
|
||||
/* 805A2CA8 */ void action();
|
||||
/* 805A2D58 */ BOOL checkHit();
|
||||
/* 805A2F54 */ void createItem();
|
||||
/* 805A3038 */ int _delete();
|
||||
|
||||
/* 805A3118 */ virtual ~daTagAtkItem_c() {}
|
||||
/* 805A2D10 */ virtual bool eventStart();
|
||||
/* 805A2D34 */ virtual bool eventEnd();
|
||||
|
||||
u8 getEvId() { return fopAcM_GetParamBit(this, 0x18, 8); }
|
||||
u8 getNum() { return fopAcM_GetParamBit(this, 8, 8); }
|
||||
u8 getItemBit() { return fopAcM_GetParamBit(this, 0x10, 8); }
|
||||
u8 getItemNo() { return fopAcM_GetParamBit(this, 0, 8); }
|
||||
|
||||
/* 0x57C */ u8 field_0x57C[0x584 - 0x57C];
|
||||
/* 0x584 */ dCcD_Stts mCcStts;
|
||||
/* 0x5C0 */ dCcD_Cyl mCyl;
|
||||
};
|
||||
|
||||
#endif /* D_A_TAG_ATTACK_ITEM_H */
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "d/d_stage.h"
|
||||
#include "d/actor/d_a_player.h"
|
||||
#include "f_op/f_op_actor.h"
|
||||
#include "m_Do/m_Do_graphic.h"
|
||||
|
||||
dAttention_c* dComIfGp_getAttention();
|
||||
|
||||
@@ -1063,7 +1064,7 @@ public:
|
||||
|
||||
bool CheckFlag(u32 i_flag) { return mEventFlags & i_flag; }
|
||||
|
||||
void ResetView() { setView(0.0f, 0.0f, 608.0f, 448.0f); }
|
||||
void ResetView() { setView(0.0f, 0.0f, FB_WIDTH, FB_HEIGHT); }
|
||||
|
||||
void clearInfo(dCamInfo_c* i_info, s16 param_1) {
|
||||
i_info->field_0x1e = param_1;
|
||||
|
||||
@@ -236,7 +236,7 @@ public:
|
||||
/* 0x04F69 */ u8 mNeedLightDropNum;
|
||||
/* 0x04F6A */ u8 field_0x4f6a[18];
|
||||
/* 0x04F7C */ u8 mMesgBgm;
|
||||
/* 0x04F7D */ bool mPauseFlag;
|
||||
/* 0x04F7D */ u8 mPauseFlag;
|
||||
/* 0x04F7E */ u8 mItemLifeCountType;
|
||||
/* 0x04F7F */ u8 mOxygenShowFlag;
|
||||
/* 0x04F80 */ u8 mShow2D;
|
||||
@@ -715,7 +715,7 @@ public:
|
||||
|
||||
void setDirection(u8 i_dir) { mItemInfo.mDirection = i_dir; }
|
||||
|
||||
bool& isPauseFlag() { return mItemInfo.mPauseFlag; }
|
||||
u8 isPauseFlag() { return mItemInfo.mPauseFlag; }
|
||||
void offPauseFlag() { mItemInfo.mPauseFlag = false; }
|
||||
void onPauseFlag() { mItemInfo.mPauseFlag = true; }
|
||||
u8 getOxygenShowFlag() { return mItemInfo.mOxygenShowFlag; }
|
||||
@@ -3095,7 +3095,7 @@ inline bool dComIfGp_isBottleSetFlag(u8 flag) {
|
||||
return g_dComIfG_gameInfo.play.isBottleSetFlag(flag);
|
||||
}
|
||||
|
||||
inline bool dComIfGp_isPauseFlag() {
|
||||
inline u8 dComIfGp_isPauseFlag() {
|
||||
return g_dComIfG_gameInfo.play.isPauseFlag();
|
||||
}
|
||||
|
||||
@@ -4069,6 +4069,10 @@ inline JPABaseEmitter* dComIfGp_particle_getEmitter(u32 param_0) {
|
||||
return g_dComIfG_gameInfo.play.getParticle()->getEmitter(param_0);
|
||||
}
|
||||
|
||||
inline void dComIfGp_particle_levelExecute(u32 param_0) {
|
||||
g_dComIfG_gameInfo.play.getParticle()->levelExecute(param_0);
|
||||
}
|
||||
|
||||
inline u32 dComIfGp_particle_setSimpleFoot(u32 param_0, u32* param_1, cBgS_PolyInfo& param_2,
|
||||
cXyz const* param_3, dKy_tevstr_c const* param_4,
|
||||
int param_5, csXyz const* param_6, cXyz const* param_7,
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef D_CURSOR_MNG_H
|
||||
#define D_CURSOR_MNG_H
|
||||
|
||||
#include "m_Do/m_Re_controller_pad.h"
|
||||
|
||||
// TODO: putting this here until a more appropriate place is found
|
||||
extern u8 data_8053a730;
|
||||
|
||||
#endif /* D_CURSOR_MNG_H */
|
||||
@@ -312,6 +312,11 @@ bool dMeter2Info_isItemOpenCheck();
|
||||
bool dMeter2Info_isMapOpenCheck();
|
||||
s16 dMeter2Info_getNowLifeGauge();
|
||||
|
||||
#if WIDESCREEN_SUPPORT
|
||||
void dMeter2Info_onWide2D();
|
||||
void dMeter2Info_offWide2D();
|
||||
#endif
|
||||
|
||||
inline void dMeter2Info_Initialize() {
|
||||
g_meter2_info.init();
|
||||
}
|
||||
|
||||
+80
-24
@@ -3,17 +3,27 @@
|
||||
|
||||
#include "JSystem/JUtility/TColor.h"
|
||||
#include "JSystem/JHostIO/JORReflexible.h"
|
||||
#include "JSystem/JHostIO/JORServer.h"
|
||||
#include "SSystem/SComponent/c_sxyz.h"
|
||||
#include "SSystem/SComponent/c_xyz.h"
|
||||
#include "global.h"
|
||||
|
||||
struct subJOREventCallbackListNode : public JOREventCallbackListNode {
|
||||
subJOREventCallbackListNode() : JOREventCallbackListNode(0x81000000, 0x81000000, true) {}
|
||||
|
||||
virtual int JORAct(u32, const char*);
|
||||
virtual ~subJOREventCallbackListNode() {}
|
||||
};
|
||||
|
||||
class JKRAramArchive;
|
||||
|
||||
class dMeter_menuHIO_c {
|
||||
class dMeter_menuHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 801FE330 */ dMeter_menuHIO_c();
|
||||
/* 8020123C */ virtual ~dMeter_menuHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
/* 0x0 */ // vtable
|
||||
/* 0x4 */ u8 field_0x4[2];
|
||||
/* 0x6 */ s16 mGameover;
|
||||
@@ -21,11 +31,13 @@ public:
|
||||
|
||||
STATIC_ASSERT(sizeof(dMeter_menuHIO_c) == 8);
|
||||
|
||||
class dMeter_drawCollectHIO_c {
|
||||
class dMeter_drawCollectHIO_c : public JORReflexible {
|
||||
public:
|
||||
dMeter_drawCollectHIO_c();
|
||||
virtual ~dMeter_drawCollectHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
enum {
|
||||
/* 0x0 */ VESSEL_HEART,
|
||||
/* 0x1 */ VESSEL_DECOR
|
||||
@@ -70,11 +82,13 @@ public:
|
||||
/* 0x9C */ bool mButtonDebugON;
|
||||
}; // Size = 0xA0
|
||||
|
||||
class dMeter_drawOptionHIO_c {
|
||||
class dMeter_drawOptionHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 801FE4EC */ dMeter_drawOptionHIO_c();
|
||||
/* 80200F98 */ virtual ~dMeter_drawOptionHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
enum OptionType {
|
||||
/* 0x0 */ ATTENTION,
|
||||
/* 0x1 */ RUMBLE,
|
||||
@@ -106,11 +120,13 @@ public:
|
||||
/* 0x6D */ u8 mBackgroundAlpha;
|
||||
}; // Size: 0x70
|
||||
|
||||
class dMeter_drawLetterHIO_c {
|
||||
class dMeter_drawLetterHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 801FE5CC */ dMeter_drawLetterHIO_c();
|
||||
/* 80200F50 */ virtual ~dMeter_drawLetterHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
enum {
|
||||
/* 0x0 */ WINDOW_FRAME,
|
||||
/* 0x1 */ LETTER_FRAME
|
||||
@@ -146,11 +162,13 @@ public:
|
||||
/* 0x5F */ bool mDebugON;
|
||||
}; // Size: 0x60
|
||||
|
||||
class dMeter_drawFishingHIO_c {
|
||||
class dMeter_drawFishingHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 801FE730 */ dMeter_drawFishingHIO_c();
|
||||
/* 80200F08 */ virtual ~dMeter_drawFishingHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
enum {
|
||||
/* 0x0 */ HYLIAN_BASS,
|
||||
/* 0x1 */ HYLIAN_LOACH,
|
||||
@@ -196,11 +214,13 @@ public:
|
||||
/* 0x250 */ bool mDebug;
|
||||
}; // Size: 0x254
|
||||
|
||||
class dMeter_drawInsectHIO_c {
|
||||
class dMeter_drawInsectHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 801FE8DC */ dMeter_drawInsectHIO_c();
|
||||
/* 80200EC0 */ virtual ~dMeter_drawInsectHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
enum Type {
|
||||
/* 0x0 */ DEFAULT,
|
||||
/* 0x1 */ COLLECT,
|
||||
@@ -227,11 +247,13 @@ public:
|
||||
/* 0x3D */ bool mDebugON;
|
||||
}; // Size: 0x40
|
||||
|
||||
class dMeter_drawCalibrationHIO_c {
|
||||
class dMeter_drawCalibrationHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 801FE954 */ dMeter_drawCalibrationHIO_c();
|
||||
/* 80200E78 */ virtual ~dMeter_drawCalibrationHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
/* 0x00 */ // vtable
|
||||
/* 0x04 */ u8 field_0x4[4];
|
||||
/* 0x08 */ f32 mCircleScale;
|
||||
@@ -242,11 +264,13 @@ public:
|
||||
/* 0x16 */ bool mDebug;
|
||||
}; // Size: 0x18
|
||||
|
||||
class dMeter_drawSkillHIO_c {
|
||||
class dMeter_drawSkillHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 801FE990 */ dMeter_drawSkillHIO_c();
|
||||
/* 80200E30 */ virtual ~dMeter_drawSkillHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
enum {
|
||||
/* 0x0 */ WINDOW,
|
||||
/* 0x1 */ SKILL_DESC,
|
||||
@@ -280,11 +304,13 @@ public:
|
||||
/* 0x5B */ bool mDebug;
|
||||
}; // Size: 0x5C
|
||||
|
||||
class dMeter_drawEmpButtonHIO_c {
|
||||
class dMeter_drawEmpButtonHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 801FEAF0 */ dMeter_drawEmpButtonHIO_c();
|
||||
/* 80200DA0 */ virtual ~dMeter_drawEmpButtonHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
/* 0x000 */ // vtable
|
||||
/* 0x004 */ u8 field_0x4[4];
|
||||
/* 0x008 */ f32 mEmpButtonPosX;
|
||||
@@ -381,18 +407,14 @@ public:
|
||||
/* 0x17C */ f32 mHawkeyeZoomPosY;
|
||||
/* 0x180 */ f32 mHawkeyeZoomScale;
|
||||
/* 0x184 */ f32 mHawkeyeZoomScale_4x3;
|
||||
/* 0x188 */ f32 mHawkeyeTextIconPosX;
|
||||
/* 0x18C */ f32 mHawkeyeZoomTextPosX;
|
||||
/* 0x190 */ f32 mHawkeyeIconPosX;
|
||||
/* 0x188 */ f32 mHawkeyeIconPosX[3];
|
||||
/* 0x194 */ f32 mHawkeyeTextIconPosY_4x3;
|
||||
/* 0x198 */ f32 mHawkeyeTextPosY_4x3;
|
||||
/* 0x19C */ f32 mHawkeyeIconPosY_4x3;
|
||||
/* 0x1A0 */ f32 mHawkeyeTextIconPosY;
|
||||
/* 0x1A4 */ f32 mHawkeyeZoomTextPosY;
|
||||
/* 0x1A8 */ f32 mHawkeyeIconPosY;
|
||||
/* 0x1AC */ f32 mHawkeyeTextIconScale;
|
||||
/* 0x1B0 */ f32 mHawkeyeTextScale;
|
||||
/* 0x1B4 */ f32 mHawkeyeIconScale;
|
||||
/* 0x1AC */ f32 mHawkeyeIconScale[3];
|
||||
/* 0x1B8 */ JUtility::TColor mPointerONBlack[2];
|
||||
/* 0x1C0 */ JUtility::TColor mPointerONWhite[2];
|
||||
/* 0x1C8 */ JUtility::TColor mPointerOFFBlack;
|
||||
@@ -432,11 +454,13 @@ public:
|
||||
/* 0x25A */ bool mHawkeyeZoomDebugON;
|
||||
}; // Size: 0x25C
|
||||
|
||||
class dMeter_drawMiniGameHIO_c {
|
||||
class dMeter_drawMiniGameHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 801FEFF0 */ dMeter_drawMiniGameHIO_c();
|
||||
/* 80200DE8 */ virtual ~dMeter_drawMiniGameHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
/* 0x000 */ // vtable
|
||||
/* 0x004 */ u8 field_0x4[4];
|
||||
/* 0x008 */ f32 field_0x8[3];
|
||||
@@ -506,11 +530,13 @@ public:
|
||||
/* 0x18C */ s16 mReadyFightPikariAppearFrames;
|
||||
}; // Size: 0x190
|
||||
|
||||
class dMeter_drawLightDropHIO_c {
|
||||
class dMeter_drawLightDropHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 801FF31C */ dMeter_drawLightDropHIO_c();
|
||||
/* 80200D58 */ virtual ~dMeter_drawLightDropHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
/* 0x00 */ // vtable
|
||||
/* 0x04 */ u8 field_0x4[4];
|
||||
/* 0x08 */ f32 mVesselScale;
|
||||
@@ -555,11 +581,22 @@ public:
|
||||
class dMeter_drawHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 801FF5B8 */ dMeter_drawHIO_c();
|
||||
/* 80201128 */ virtual ~dMeter_drawHIO_c() {}
|
||||
/* 80201128 */ virtual ~dMeter_drawHIO_c() {
|
||||
#if DEBUG
|
||||
field_0x8_debug = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void listenPropertyEvent(const JORPropertyEvent*);
|
||||
virtual void genMessage(JORMContext*);
|
||||
|
||||
void updateFMsgDebug();
|
||||
#endif
|
||||
|
||||
#if WIDESCREEN_SUPPORT
|
||||
void updateOnWide();
|
||||
void updateOffWide();
|
||||
#endif
|
||||
|
||||
/* 0x000 */ // vtable
|
||||
@@ -916,11 +953,18 @@ public:
|
||||
|
||||
STATIC_ASSERT(sizeof(dMeter_drawHIO_c) == 3880);
|
||||
|
||||
class dMeter_ringHIO_c {
|
||||
class dMeter_ringHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 802001AC */ dMeter_ringHIO_c();
|
||||
/* 802010E0 */ virtual ~dMeter_ringHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
#if WIDESCREEN_SUPPORT
|
||||
void updateOnWide();
|
||||
void updateOffWide();
|
||||
#endif
|
||||
|
||||
enum {
|
||||
/* 0x0 */ SET_ITEM,
|
||||
/* 0x1 */ DIRECT_SELECT,
|
||||
@@ -1007,11 +1051,13 @@ public:
|
||||
|
||||
STATIC_ASSERT(sizeof(dMeter_ringHIO_c) == 344);
|
||||
|
||||
class dMeter_mapIconHIO_c {
|
||||
class dMeter_mapIconHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 802004B4 */ dMeter_mapIconHIO_c();
|
||||
/* 80201028 */ virtual ~dMeter_mapIconHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
enum {
|
||||
/* 0x00 */ ICON_PORTAL,
|
||||
/* 0x01 */ ICON_LINK,
|
||||
@@ -1141,6 +1187,8 @@ public:
|
||||
/* 802006C8 */ dMeter_fmapHIO_c();
|
||||
#ifdef DEBUG
|
||||
void update();
|
||||
void createEvtCallBackObject();
|
||||
void deleteEvtCallBackObject();
|
||||
|
||||
virtual void listenPropertyEvent(const JORPropertyEvent*);
|
||||
virtual void genMessage(JORMContext*);
|
||||
@@ -1148,11 +1196,17 @@ public:
|
||||
/* 80200BCC */ virtual ~dMeter_fmapHIO_c();
|
||||
|
||||
/* 0x004 */ s8 field_0x4;
|
||||
/* 0x008 */ JKRAramArchive* mpArchive;
|
||||
/* 0x00C */ void* field_0xc;
|
||||
/* 0x010 */ void* field_0x10;
|
||||
#if DEBUG
|
||||
/* 0x008 */ subJOREventCallbackListNode* mpEvtCallBack;
|
||||
#endif
|
||||
/* 0x008 */ JKRAramArchive* mpArcData;
|
||||
/* 0x00C */ void* mpArcFile;
|
||||
/* 0x010 */ void* mpDecompBuf;
|
||||
/* 0x014 */ void* field_0x14;
|
||||
/* 0x018 */ void* field_0x18;
|
||||
#if DEBUG
|
||||
/* 0x020 */ u8 unk_0x20[4];
|
||||
#endif
|
||||
/* 0x01C */ MapBlinkAnime mMapBlink[3];
|
||||
/* 0x094 */ s16 mDisplayFrameNum;
|
||||
/* 0x096 */ s16 mUndisplayFrameNum;
|
||||
@@ -1255,11 +1309,13 @@ public:
|
||||
|
||||
STATIC_ASSERT(sizeof(dMeter_fmapHIO_c) == 1188);
|
||||
|
||||
class dMeter_cursorHIO_c {
|
||||
class dMeter_cursorHIO_c : public JORReflexible {
|
||||
public:
|
||||
/* 80200CD4 */ dMeter_cursorHIO_c();
|
||||
/* 80201098 */ virtual ~dMeter_cursorHIO_c() {}
|
||||
|
||||
void genMessage(JORMContext*);
|
||||
|
||||
/* 0x04 */ s8 field_0x4;
|
||||
/* 0x08 */ cXyz mSeraShopObjZoom;
|
||||
/* 0x14 */ cXyz mObjZoom;
|
||||
|
||||
@@ -409,6 +409,13 @@ public:
|
||||
|
||||
void levelAllForceOnEventMove() { field_0x210.allForceOnEventMove(); }
|
||||
|
||||
void levelExecute(u32 param_0) {
|
||||
level_c::emitter_c* emitter = field_0x210.get(param_0);
|
||||
if (emitter != NULL) {
|
||||
field_0x210.execute(emitter);
|
||||
}
|
||||
}
|
||||
|
||||
static void onStatus(u8 status) { mStatus |= status; }
|
||||
static void offStatus(u8 status) { mStatus &= ~status; }
|
||||
static bool isStatus(u8 status) { return mStatus & status; }
|
||||
|
||||
@@ -798,6 +798,8 @@ enum {
|
||||
/* 0x315 */ PROC_TIMER,
|
||||
/* 0x316 */ PROC_METER2,
|
||||
/* 0x317 */ PROC_GAMEOVER,
|
||||
|
||||
PROC_MAX_NUM,
|
||||
};
|
||||
|
||||
#endif /* D_PROCNAME_H */
|
||||
|
||||
Reference in New Issue
Block a user