mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-12 11:35:09 -04:00
This commit is contained in:
@@ -18,10 +18,10 @@ public:
|
||||
SpkTable(void);
|
||||
void setResource(void* res);
|
||||
|
||||
inline s32 getName(s32 num) {
|
||||
inline const char* getName(s32 num) {
|
||||
JUT_ASSERT(0x35, num >= 0);
|
||||
JUT_ASSERT(0x36, num < mNumOfSound);
|
||||
return *(mDataOffsets + num);
|
||||
return (const char*)*(mDataOffsets + num);
|
||||
}
|
||||
inline s32 getNumOfSound() const { return mNumOfSound; }
|
||||
inline bool isValid(void) const { return mIsInitialized; }
|
||||
|
||||
@@ -19,7 +19,7 @@ public:
|
||||
static SpkSoundHandle* getHandleSoundID(s32 soundNum);
|
||||
static SpkSoundHandle* start(s32 id, s32 chan);
|
||||
static SpkSoundHandle* startLevel(s32 id, s32 chan);
|
||||
static s32 getName(s32 num);
|
||||
static const char* getName(s32 num);
|
||||
static s32 getNumOfSound(void);
|
||||
static void stopAll(s32 chan, s32 msec);
|
||||
static void stop(s32 chan);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
#include "JSystem/JAudio2/JAISoundHandles.h"
|
||||
#include "JSystem/JAudio2/JAUSoundTable.h"
|
||||
|
||||
class Z2SoundPlayer : public JAWWindow {
|
||||
public:
|
||||
@@ -24,43 +25,32 @@ public:
|
||||
virtual void onKeyRight(const JUTGamePad&);
|
||||
|
||||
u32 getCursorMoveMax(const JUTGamePad&);
|
||||
int getMenuNumberMax();
|
||||
void correctSeNumber();
|
||||
|
||||
/* 0x3ED */ u8 field_0x3ed;
|
||||
/* 0x3EE */ u8 field_0x3ee;
|
||||
/* 0x3EF */ u8 field_0x3ef;
|
||||
/* 0x3F0 */ u8 field_0x3f0;
|
||||
/* 0x3F4 */ const char* field_0x3f4;
|
||||
/* 0x3F8 */ short field_0x3f8;
|
||||
/* 0x3FA */ short field_0x3fa;
|
||||
/* 0x3FC */ short field_0x3fc;
|
||||
/* 0x3FE */ short field_0x3fe;
|
||||
/* 0x400 */ short field_0x400;
|
||||
/* 0x402 */ short field_0x402;
|
||||
/* 0x404 */ const char* field_0x404;
|
||||
/* 0x408 */ const char* field_0x408;
|
||||
/* 0x40C */ const char* field_0x40c;
|
||||
/* 0x410 */ const char* field_0x410;
|
||||
/* 0x414 */ const char* field_0x414;
|
||||
/* 0x418 */ const char* field_0x418;
|
||||
/* 0x41C */ const char* field_0x41c;
|
||||
/* 0x420 */ const char* field_0x420;
|
||||
/* 0x424 */ const char* field_0x424;
|
||||
/* 0x428 */ const char* field_0x428;
|
||||
/* 0x42C */ const char* field_0x42c;
|
||||
/* 0x430 */ const char* field_0x430;
|
||||
/* 0x434 */ const char* field_0x434;
|
||||
/* 0x438 */ const char* field_0x438;
|
||||
/* 0x43C */ const char* field_0x43c;
|
||||
/* 0x440 */ const char* field_0x440;
|
||||
/* 0x444 */ short field_0x444;
|
||||
void onDrawSoundItem(JAWGraphContext*, JAUSoundNameTable*, int, const JUtility::TColor&, const JUtility::TColor&, const char*, u32, u32, u32);
|
||||
|
||||
/* 0x3ED */ bool field_0x3ed;
|
||||
/* 0x3EE */ bool field_0x3ee;
|
||||
/* 0x3EF */ bool field_0x3ef;
|
||||
/* 0x3F0 */ bool field_0x3f0;
|
||||
/* 0x3F4 */ const char* m_name;
|
||||
/* 0x3F8 */ s16 field_0x3f8;
|
||||
/* 0x3FA */ s16 field_0x3fa;
|
||||
/* 0x3FC */ s16 field_0x3fc;
|
||||
/* 0x3FE */ s16 field_0x3fe;
|
||||
/* 0x400 */ s16 field_0x400;
|
||||
/* 0x402 */ s16 m_portNum;
|
||||
/* 0x404 */ const char* m_portNames[16];
|
||||
/* 0x444 */ s16 m_portVal;
|
||||
/* 0x446 */ u8 field_0x446;
|
||||
/* 0x448 */ short* field_0x448[7];
|
||||
/* 0x464 */ int field_0x464;
|
||||
/* 0x468 */ int field_0x468;
|
||||
/* 0x448 */ s16* field_0x448[7];
|
||||
/* 0x464 */ u32 m_cursorY;
|
||||
/* 0x468 */ int m_cursorMax;
|
||||
/* 0x46C */ JAISoundHandle field_0x46c[8];
|
||||
/* 0x48C */ JAISoundHandles field_0x48c;
|
||||
/* 0x494 */ JAISoundHandle field_0x494;
|
||||
/* 0x498 */ JAISoundHandle* field_0x498;
|
||||
/* 0x498 */ JAISoundHandle* mp_subBgmHandle;
|
||||
/* 0x49C */ JAISoundHandle field_0x49c;
|
||||
/* 0x4A0 */ int field_0x4a0;
|
||||
/* 0x4A4 */ f32 field_0x4a4;
|
||||
|
||||
@@ -2,10 +2,39 @@
|
||||
#define Z2WAVEARCLOADER_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
#include "JSystem/JAudio2/JASWaveArcLoader.h"
|
||||
#include "JSystem/JAudio2/JASWaveInfo.h"
|
||||
|
||||
class Z2WaveArcLoader : public JAWWindow {
|
||||
public:
|
||||
Z2WaveArcLoader();
|
||||
virtual ~Z2WaveArcLoader();
|
||||
|
||||
virtual void onDraw(JAWGraphContext*);
|
||||
|
||||
void checkWaveBank();
|
||||
void checkWaveArc();
|
||||
|
||||
virtual void onKeyUp(const JUTGamePad&);
|
||||
virtual void onKeyDown(const JUTGamePad&);
|
||||
virtual void onKeyLeft(const JUTGamePad&);
|
||||
virtual void onKeyRight(const JUTGamePad&);
|
||||
virtual void onTrigA(const JUTGamePad&);
|
||||
virtual void onTrigB(const JUTGamePad&);
|
||||
virtual void onTrigZ(const JUTGamePad&);
|
||||
|
||||
/* 0x3F0 */ JASWaveBank* mpWaveBank;
|
||||
/* 0x3F4 */ JASWaveArc* mpWaveArc;
|
||||
/* 0x3F8 */ u32 mWaveUsedSize;
|
||||
/* 0x3FC */ int mTotalUsedSize;
|
||||
/* 0x400 */ u8 mBankNo;
|
||||
/* 0x404 */ u32 mArcCount;
|
||||
/* 0x408 */ u32 field_0x408;
|
||||
/* 0x40C */ u32 field_0x40c;
|
||||
/* 0x410 */ u32 field_0x410;
|
||||
/* 0x414 */ u8 field_0x414;
|
||||
/* 0x415 */ u8 field_0x415;
|
||||
/* 0x416 */ bool mIsLoadTail;
|
||||
};
|
||||
|
||||
#endif /* Z2WAVEARCLOADER_H */
|
||||
|
||||
+11
-11
@@ -50,30 +50,30 @@ public:
|
||||
int create();
|
||||
|
||||
/* 0x5AC */ request_of_phase_process_class mPhase;
|
||||
/* 0x5B4 */ mDoExt_McaMorfSO* mpModelMorf;
|
||||
/* 0x5B4 */ mDoExt_McaMorfSO* mAnm_p;
|
||||
/* 0x5B8 */ Z2CreatureEnemy mSound;
|
||||
/* 0x65C */ cXyz field_0x65c;
|
||||
/* 0x668 */ csXyz field_0x668;
|
||||
/* 0x66E */ csXyz field_0x66e;
|
||||
/* 0x65C */ cXyz mHomePos;
|
||||
/* 0x668 */ csXyz mTargetWallAngle;
|
||||
/* 0x66E */ csXyz mWallAngle;
|
||||
/* 0x674 */ f32 mDownColor;
|
||||
/* 0x678 */ f32 mBodyScale;
|
||||
/* 0x67C */ int mAction;
|
||||
/* 0x680 */ int mMode;
|
||||
/* 0x684 */ u32 mShadowId;
|
||||
/* 0x688 */ s16 mTargetAngle;
|
||||
/* 0x68A */ s16 mTargetStep;
|
||||
/* 0x68C */ u8 mMoveWaitTimer;
|
||||
/* 0x68A */ s16 mStepAngle;
|
||||
/* 0x68C */ u8 mWaitTimer;
|
||||
/* 0x68E */ s16 mInvulnerabilityTimer;
|
||||
/* 0x690 */ u8 field_0x690;
|
||||
/* 0x691 */ u8 field_0x691;
|
||||
/* 0x692 */ u8 mSwbit;
|
||||
/* 0x694 */ dBgS_AcchCir mAcchCir;
|
||||
/* 0x690 */ u8 mIsReturnHome;
|
||||
/* 0x691 */ u8 arg0;
|
||||
/* 0x692 */ u8 bitSw;
|
||||
/* 0x694 */ dBgS_AcchCir mBgc;
|
||||
/* 0x6D4 */ dBgS_ObjAcch mAcch;
|
||||
/* 0x8AC */ dCcD_Stts mCcStts;
|
||||
/* 0x8E8 */ dCcD_Sph mCcSph;
|
||||
/* 0xA20 */ dCcD_Sph mCcBokkuriSph;
|
||||
/* 0xB58 */ dCcU_AtInfo mAtInfo;
|
||||
/* 0xB7C */ u8 mHIOInit;
|
||||
/* 0xB7C */ u8 mHioSet;
|
||||
};
|
||||
|
||||
STATIC_ASSERT(sizeof(daE_WS_c) == 0xb80);
|
||||
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
int CreateHeap();
|
||||
int Delete();
|
||||
int Execute();
|
||||
void Draw();
|
||||
int Draw();
|
||||
static BOOL createHeapCallBack(fopAc_ac_c*);
|
||||
static BOOL ctrlJointCallBack(J3DJoint*, int);
|
||||
bool getType();
|
||||
|
||||
@@ -321,6 +321,7 @@ int dMeter2Info_setNewLetterSender();
|
||||
bool dMeter2Info_isItemOpenCheck();
|
||||
bool dMeter2Info_isMapOpenCheck();
|
||||
s16 dMeter2Info_getNowLifeGauge();
|
||||
bool dMeter2Info_isNextStage(const char*, s16, s16, s16);
|
||||
|
||||
#if WIDESCREEN_SUPPORT
|
||||
void dMeter2Info_onWide2D();
|
||||
@@ -844,10 +845,6 @@ inline void dMeter2Info_onTempBit(int i_bit) {
|
||||
g_meter2_info.onTempBit(i_bit);
|
||||
}
|
||||
|
||||
inline bool dMeter2Info_isNextStage(const char*, s16, s16, s16) {
|
||||
return false;
|
||||
}
|
||||
|
||||
inline void dMeter2Info_setFloatingMessage(u16 i_msgID, s16 i_msgTimer, bool i_wakuVisible) {
|
||||
g_meter2_info.setFloatingMessage(i_msgID, i_msgTimer, i_wakuVisible);
|
||||
}
|
||||
|
||||
@@ -562,6 +562,10 @@ inline void dMsgObject_setOffering(u16 i_num) {
|
||||
dComIfGs_setEventReg(0xF8FF, i_num & 0xFF);
|
||||
}
|
||||
|
||||
inline void dMsgObject_setLetterNameID(u16 id) {
|
||||
dMsgObject_getMsgObjectClass()->setLetterNameID(id);
|
||||
}
|
||||
|
||||
class dMsgObject_HowlHIO_c {
|
||||
public:
|
||||
dMsgObject_HowlHIO_c();
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ struct dPath {
|
||||
/* 0x2 */ BE(u16) m_nextID;
|
||||
/* 0x4 */ u8 field_0x4;
|
||||
/* 0x5 */ bool m_closed;
|
||||
/* 0x6 */ u8 field_0x6;
|
||||
/* 0x6 */ u8 swbit;
|
||||
/* 0x7 */ u8 field_0x7;
|
||||
/* 0x8 */ OFFSET_PTR(dPnt) m_points;
|
||||
};
|
||||
|
||||
+1
-1
@@ -267,7 +267,7 @@ struct dStage_MemoryConfig_c {
|
||||
// PATH / RPAT
|
||||
struct dPath;
|
||||
struct dStage_dPath_c {
|
||||
/* 0x0 */ BE(int) m_num;
|
||||
/* 0x0 */ BE(int) num;
|
||||
/* 0x4 */ OFFSET_PTR(dPath) m_path;
|
||||
};
|
||||
|
||||
|
||||
+13
-3
@@ -47,18 +47,21 @@ class dVibTest_c : public JORReflexible {
|
||||
public:
|
||||
dVibTest_c();
|
||||
|
||||
void Init();
|
||||
void setDefault();
|
||||
|
||||
virtual void listenPropertyEvent(const JORPropertyEvent*);
|
||||
virtual void genMessage(JORMContext*);
|
||||
virtual ~dVibTest_c() {}
|
||||
virtual ~dVibTest_c();
|
||||
|
||||
/* 0x04 */ s8 field_0x4;
|
||||
/* 0x04 */ s8 id;
|
||||
/* 0x06 */ u16 m_pattern;
|
||||
/* 0x08 */ u16 m_pattern2;
|
||||
/* 0x0A */ u16 field_0xa;
|
||||
/* 0x0C */ s16 m_randombit;
|
||||
/* 0x0E */ s16 m_length;
|
||||
/* 0x10 */ int field_0x10;
|
||||
/* 0x14 */ int m_vibswitch;
|
||||
/* 0x14 */ s32 m_vibswitch;
|
||||
/* 0x18 */ u16 m_displayDbg;
|
||||
};
|
||||
|
||||
@@ -82,6 +85,10 @@ public:
|
||||
void Pause();
|
||||
void Remove();
|
||||
|
||||
#if DEBUG
|
||||
int testShake();
|
||||
#endif
|
||||
|
||||
static const vib_pattern MS_patt[VIBMODE_S_MAX];
|
||||
static const vib_pattern CS_patt[VIBMODE_S_MAX];
|
||||
static const vib_pattern MQ_patt[VIBMODE_Q_MAX];
|
||||
@@ -123,4 +130,7 @@ private:
|
||||
/* 0x8C */ s32 mMode;
|
||||
}; // Size: 0x90
|
||||
|
||||
extern const char* shock_names[VIBMODE_S_MAX];
|
||||
extern const char* quake_names[VIBMODE_Q_MAX];
|
||||
|
||||
#endif /* D_D_VIBRATION_H */
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
static f32 getAnalogR(u32 pad) { return getCpadInfo(pad).mTriggerRight; }
|
||||
static f32 getAnalogL(u32 pad) { return getCpadInfo(pad).mTriggerLeft; }
|
||||
static BOOL isConnect(u32 pad) { return JUTGamePad::getPortStatus((JUTGamePad::EPadPort)pad) == 0; }
|
||||
static void startMotorWave(u32 pad, void* data, JUTGamePad::CRumble::ERumble rumble, u32 length) {
|
||||
static void startMotorWave(u32 pad, u8* data, JUTGamePad::CRumble::ERumble rumble, u32 length) {
|
||||
m_gamePad[pad]->startMotorWave(data, rumble, length);
|
||||
}
|
||||
static void stopMotor(u32 pad) { m_gamePad[pad]->stopMotor(); }
|
||||
|
||||
Reference in New Issue
Block a user