Skip to content

Commit

Permalink
Use the same nested struct pattern as TP in dVibration_c
Browse files Browse the repository at this point in the history
  • Loading branch information
Aelire committed Jul 25, 2024
1 parent 202fce5 commit 6520e28
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 150 deletions.
44 changes: 23 additions & 21 deletions include/d/d_vibration.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,31 @@ class dVibration_c {
static const struct vib_pattern MQ_patt[12];
static const struct vib_pattern CQ_patt[12];

struct camera_rumble{
int mPatternIdx;
u32 mPattern;
s32 mLength;
s32 mRounds;
s32 mFlags;
cXyz mCoord;
s32 mCurrentFrame;
}; // Size: 0x24
struct {
struct {
/* 0x00 */ int mPatternIdx;
/* 0x04 */ u32 mPattern;
/* 0x08 */ s32 mLength;
/* 0x0C */ s32 mRounds;
/* 0x10 */ s32 mFlags;
/* 0x14 */ cXyz mCoord;
/* 0x20 */ s32 mCurrentFrame;
} /* 0x00 */ mShock,
/* 0x24 */ mQuake;
} /* 0x00 */ mCamera;

struct motor_rumble{
int mPatternIdx;
u32 mPattern;
s32 mLength;
s32 mRounds;
s32 mCurrentFrame;
s32 mStopFrame; /* different from length for looping rumble */
}; // Size: 0x12
struct {
struct {
/* 0x00 */ int mPatternIdx;
/* 0x04 */ u32 mPattern;
/* 0x08 */ s32 mLength;
/* 0x0C */ s32 mRounds;
/* 0x10 */ s32 mCurrentFrame;
/* 0x14 */ s32 mStopFrame; /* different from length for looping rumble */
} /* 0x00 */ mShock,
/* 0x18 */ mQuake;
} /* 0x48 */ mMotor;

/* 0x0 */ struct camera_rumble mCameraShock;
/* 0x24 */ struct camera_rumble mCameraQuake;
/* 0x48 */ struct motor_rumble mMotorShock;
/* 0x60 */ struct motor_rumble mMotorQuake;
/* 0x78 */ s32 mFrameIdx;
/* 0x7C */ int mRumbleState;
/* 0x80 */ /* vtable */
Expand Down
Loading

0 comments on commit 6520e28

Please sign in to comment.