mirror of
https://github.com/zeldaret/tp
synced 2026-05-22 22:44:28 -04:00
4th round of standard compiler fixes (#2984)
* 4th round of standard compiler fixes * use of fpcM_ERROR_PROCESS_ID_e in gWolfBustersID
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define JORENTRY_H
|
||||
|
||||
#include "JSystem/JHostIO/JHIComm.h"
|
||||
#include "dolphin/os.h"
|
||||
|
||||
template<typename T, int I>
|
||||
class JHIpvector {
|
||||
|
||||
@@ -179,7 +179,7 @@ public:
|
||||
|
||||
public:
|
||||
void initialize() {
|
||||
memset(&mFootLPos, 0, (int)&field_0xe3c - (int)&mFootLPos);
|
||||
memset(&mFootLPos, 0, (intptr_t)&field_0xe3c - (intptr_t)&mFootLPos);
|
||||
|
||||
mFaceMotionSeqMngr.initialize();
|
||||
mMotionSeqMngr.initialize();
|
||||
|
||||
+10
-10
@@ -320,9 +320,9 @@ extern BOOL __OSInReboot;
|
||||
|
||||
#define ASSERT(cond) ASSERTLINE(__LINE__, cond)
|
||||
|
||||
static inline u8 __OSf32tou8(register f32 in) {
|
||||
static inline u8 __OSf32tou8(__REGISTER f32 in) {
|
||||
f32 a;
|
||||
register f32* ptr = &a;
|
||||
__REGISTER f32* ptr = &a;
|
||||
u8 r;
|
||||
|
||||
#if defined(__MWERKS__)
|
||||
@@ -336,9 +336,9 @@ static inline u8 __OSf32tou8(register f32 in) {
|
||||
return r;
|
||||
}
|
||||
|
||||
static inline u16 __OSf32tou16(register f32 in) {
|
||||
static inline u16 __OSf32tou16(__REGISTER f32 in) {
|
||||
f32 a;
|
||||
register f32* ptr = &a;
|
||||
__REGISTER f32* ptr = &a;
|
||||
u16 r;
|
||||
|
||||
#if defined(__MWERKS__)
|
||||
@@ -352,9 +352,9 @@ static inline u16 __OSf32tou16(register f32 in) {
|
||||
return r;
|
||||
}
|
||||
|
||||
static inline s16 __OSf32tos16(register f32 in) {
|
||||
static inline s16 __OSf32tos16(__REGISTER f32 in) {
|
||||
f32 a;
|
||||
register f32* ptr = &a;
|
||||
__REGISTER f32* ptr = &a;
|
||||
s16 r;
|
||||
|
||||
#if defined(__MWERKS__)
|
||||
@@ -368,8 +368,8 @@ static inline s16 __OSf32tos16(register f32 in) {
|
||||
return r;
|
||||
}
|
||||
|
||||
static inline f32 __OSu16tof32(register u16 const* arg) {
|
||||
register f32 ret;
|
||||
static inline f32 __OSu16tof32(__REGISTER u16 const* arg) {
|
||||
__REGISTER f32 ret;
|
||||
|
||||
#if defined(__MWERKS__)
|
||||
asm { psq_l ret, 0(arg), 1, 3 };
|
||||
@@ -381,8 +381,8 @@ static inline f32 __OSu16tof32(register u16 const* arg) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline f32 __OSs16tof32(register s16 const* arg) {
|
||||
register f32 ret;
|
||||
static inline f32 __OSs16tof32(__REGISTER s16 const* arg) {
|
||||
__REGISTER f32 ret;
|
||||
|
||||
#if defined(__MWERKS__)
|
||||
asm { psq_l ret, 0(arg), 1, 5 };
|
||||
|
||||
@@ -790,8 +790,8 @@ void daB_DS_c::mCreateTrap(bool param_0) {
|
||||
angle.x = 0;
|
||||
pos.y = 1708.0f;
|
||||
|
||||
static s16 mBirthAngle01_dt[4] = {0x0000, 0x4000, 0x8000, 0xc000};
|
||||
static s16 mBirthAngle02_dt[3] = {0x0000, 0x5555, 0xaaaa};
|
||||
static s16 mBirthAngle01_dt[4] = {0x0000, 0x4000, -0x8000, -0x4000};
|
||||
static s16 mBirthAngle02_dt[3] = {0x0000, 0x5555, -0x5556};
|
||||
static f32 mBirthYpos02_dt[3] = {1150.0f, 350.0f, -450.0f};
|
||||
|
||||
if (mBossPhase == 0) {
|
||||
|
||||
@@ -569,7 +569,7 @@ void daB_YO_c::setIcicleSubNumber() {
|
||||
}
|
||||
|
||||
void daB_YO_c::setWindowBreakEffect(int param_0) {
|
||||
static s16 yo_window_angle[6] = {0xC000, 0xE000, 0x6000, 0x2000, 0x4000, 0x0000};
|
||||
static s16 yo_window_angle[6] = {-0x4000, -0x2000, 0x6000, 0x2000, 0x4000, 0x0000};
|
||||
static u16 madoware_effect_id[4] = {0x87C1, 0x87C2, 0x87C3, 0x87C4};
|
||||
csXyz angle(0, yo_window_angle[param_0], 0);
|
||||
cXyz pos(0.0f, 0.0f, 0.0f);
|
||||
|
||||
@@ -281,7 +281,7 @@ static void drop_check(bd_class* i_this) {
|
||||
|
||||
|
||||
static void turn_set(bd_class* i_this) {
|
||||
s16 angle_table[3] = {0x8000, 0x4000, -0x4000};
|
||||
s16 angle_table[3] = {-0x8000, 0x4000, -0x4000};
|
||||
s16 angle = angle_table[(int)cM_rndF(2.99f)];
|
||||
i_this->mTargetAngleY = i_this->enemy.current.angle.y + angle;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ static f32 l_CowRoomPosX[20] = {-10600.0f, -10600.0f, -10800.0f, -10800.0f, -110
|
||||
static f32 l_CowRoomPosZ[2] = {-19646.0f, -20926.0f};
|
||||
|
||||
#define N_WOLF_BUSTERS 3
|
||||
extern fpc_ProcID gWolfBustersID[N_WOLF_BUSTERS] = {-1, -1, -1};
|
||||
extern fpc_ProcID gWolfBustersID[N_WOLF_BUSTERS] = {fpcM_ERROR_PROCESS_ID_e, fpcM_ERROR_PROCESS_ID_e, fpcM_ERROR_PROCESS_ID_e};
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
@@ -1465,8 +1465,8 @@ static void ke_move(daDemo00_c* i_this, mDoExt_3DlineMat0_c* param_2, demo_s1_ke
|
||||
|
||||
static void ke_set(daDemo00_c* i_this) {
|
||||
static s16 ke_za[22] = {
|
||||
0xFCE0, 0xFE70, 0, 0x0190, 0x0320, 0xFCE0, 0xFE70, 0, 0x0190, 0x0320,
|
||||
0xFCE0, 0xFE70, 0, 0x0190, 0x0320, 0x04B0, 0xFCE0, 0xFE70, 0,
|
||||
-0x0320, -0x0190, 0, 0x0190, 0x0320, -0x0320, -0x0190, 0, 0x0190, 0x0320,
|
||||
-0x0320, -0x0190, 0, 0x0190, 0x0320, 0x04B0, -0x0320, -0x0190, 0,
|
||||
0x0190, 0x0320, 0x04B0,
|
||||
};
|
||||
|
||||
|
||||
@@ -1622,11 +1622,11 @@ static int useHeapInit(fopAc_ac_c* a_this) {
|
||||
|
||||
static int kabe_initial_pos_set(e_dd_class* i_this) {
|
||||
static s16 ya[5] = {
|
||||
-0x4000, 0x4000, 0x0000, 0x8000, 0x0000,
|
||||
-0x4000, 0x4000, 0x0000, -0x8000, 0x0000,
|
||||
};
|
||||
|
||||
static s16 xa[5] = {
|
||||
0xC000, 0xC000, 0xC000, 0xC000, 0x8000,
|
||||
-0x4000, -0x4000, -0x4000, -0x4000, -0x8000,
|
||||
};
|
||||
|
||||
fopAc_ac_c* a_this = &i_this->actor;
|
||||
|
||||
@@ -522,8 +522,8 @@ static void e_gb_start(e_gb_class* i_this) {
|
||||
|
||||
static void kuki_control1(e_gb_class* i_this) {
|
||||
static s16 pow_xa[17] = {
|
||||
0xD000, 0xD800, 0xE000,
|
||||
0xE800, 0xF000, 0x0000,
|
||||
-0x3000, -0x2800, -0x2000,
|
||||
-0x1800, -0x1000, 0x0000,
|
||||
0x1000, 0x1800, 0x2000,
|
||||
0x2800, 0x3000, 0x3800,
|
||||
0x3000, 0x2000, 0x1000,
|
||||
@@ -531,9 +531,9 @@ static void kuki_control1(e_gb_class* i_this) {
|
||||
};
|
||||
|
||||
static s16 pow_xa_chance[17] = {
|
||||
0xC800, 0xD000, 0xD800,
|
||||
0xE000, 0xE800, 0xF000,
|
||||
0xF800, 0x0000, 0x0000,
|
||||
-0x3800, -0x3000, -0x2800,
|
||||
-0x2000, -0x1800, -0x1000,
|
||||
-0x0800, 0x0000, 0x0000,
|
||||
0x0000, 0x0000, 0x0000,
|
||||
0x0800, 0x0000, 0x0800,
|
||||
0x0000, 0x0800,
|
||||
|
||||
@@ -332,11 +332,11 @@ void daE_GM_c::appear() {
|
||||
}
|
||||
|
||||
static s16 const l_rand[4] = {
|
||||
0xF800, 0x0400, 0xFC00, 0x0800,
|
||||
-0x0800, 0x0400, -0x0400, 0x0800,
|
||||
};
|
||||
|
||||
static s16 const l_rand2[4] = {
|
||||
0xD000, 0x3800, 0xB800, 0x5000,
|
||||
-0x3000, 0x3800, -0x4800, 0x5000,
|
||||
};
|
||||
|
||||
static f32 const l_rand_base_spd[4] = {
|
||||
|
||||
@@ -2233,7 +2233,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
|
||||
}
|
||||
|
||||
J3DModel* model = kr->mpMorf->getModel();
|
||||
model->setUserArea((int)kr);
|
||||
model->setUserArea((intptr_t)kr);
|
||||
|
||||
for (u16 i = 0; i < model->getModelData()->getJointNum(); i++) {
|
||||
if (i != 0) {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "d/dolzel_rel.h" // IWYU pragma: keep
|
||||
|
||||
#include "d/actor/d_a_e_mk.h"
|
||||
#include "..\assets\GZ2E01\res\Object\E_mk.h"
|
||||
#include "res/Object/E_mk.h"
|
||||
#include "d/d_cc_d.h"
|
||||
#include "d/d_com_inf_game.h"
|
||||
#include "d/actor/d_a_obj_pillar.h"
|
||||
|
||||
@@ -2056,7 +2056,8 @@ void daE_PM_c::BossAction() {
|
||||
}
|
||||
|
||||
int daE_PM_c::Execute() {
|
||||
s_LinkPos = &fopAcM_GetPosition(daPy_getPlayerActorClass());
|
||||
daPy_py_c* actor = daPy_getPlayerActorClass();
|
||||
s_LinkPos = &fopAcM_GetPosition(actor);
|
||||
s_TargetAngle = cLib_targetAngleY(¤t.pos, s_LinkPos);
|
||||
s_dis = current.pos.abs(*s_LinkPos);
|
||||
|
||||
@@ -2078,7 +2079,8 @@ int daE_PM_c::Execute() {
|
||||
}
|
||||
|
||||
LampAction();
|
||||
setMidnaBindEffect(this, &mCreatureSound, ¤t.pos, &cXyz(1.5f, 1.5f, 1.5f));
|
||||
cXyz i_effSize(1.5f, 1.5f, 1.5f);
|
||||
setMidnaBindEffect(this, &mCreatureSound, ¤t.pos, &i_effSize);
|
||||
EyeMove();
|
||||
mpMorf->play(0, dComIfGp_getReverb(fopAcM_GetRoomNo(this)));
|
||||
setCcCylinder();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @file d_a_e_po.cpp
|
||||
* @file d_a_e_po.cpp
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -1706,8 +1706,8 @@ static void e_po_holl_demo(e_po_class* i_this) {
|
||||
};
|
||||
static s16 mKAngInit_dt[4] = {
|
||||
0x0000,
|
||||
0x8000,
|
||||
0x8000,
|
||||
-0x8000,
|
||||
-0x8000,
|
||||
0x0000,
|
||||
};
|
||||
|
||||
|
||||
@@ -1766,8 +1766,8 @@ static const struct {
|
||||
};
|
||||
|
||||
static const s16 mDBaBa_birthAngle_dt[] = {
|
||||
0x0000, 0x2AAA, 0x5554, 0x7FFE, 0xAAA8, 0xD552,
|
||||
0x1000, 0x3AAA, 0x6554, 0x8FFE, 0xBAA8, 0xE552,
|
||||
0x0000, 0x2AAA, 0x5554, 0x7FFE, -0x5558, -0x2AAE,
|
||||
0x1000, 0x3AAA, 0x6554, -0x7002, -0x4558, -0x1AAE,
|
||||
};
|
||||
|
||||
static const f32 mDBaBa_birthHani_dt[] = {
|
||||
|
||||
@@ -1554,9 +1554,9 @@ static void ke_set(e_s1_class* i_this) {
|
||||
cMtx_XrotM(*calc_mtx, (ZREG_S(1) + (int)cM_rndF2(2000.0f) + 3000));
|
||||
|
||||
static s16 ke_za[] = {
|
||||
0xFCE0, 0xFE70, 0x0000, 0x0190, 0x0320, 0xFCE0, 0xFE70,
|
||||
0x0000, 0x0190, 0x0320, 0xFCE0, 0xFE70, 0x0000, 0x0190,
|
||||
0x0320, 0x04B0, 0xFCE0, 0xFE70, 0x0000, 0x0190, 0x0320,
|
||||
-0x0320, -0x0190, 0x0000, 0x0190, 0x0320, -0x0320, -0x0190,
|
||||
0x0000, 0x0190, 0x0320, -0x0320, -0x0190, 0x0000, 0x0190,
|
||||
0x0320, 0x04B0, -0x0320, -0x0190, 0x0000, 0x0190, 0x0320,
|
||||
0x04B0,
|
||||
};
|
||||
|
||||
|
||||
@@ -898,8 +898,8 @@ static void damage_check(e_sm2_class* i_this) {
|
||||
for (int j = 0; j < bun_d[i_this->sizetype]; j++) {
|
||||
static int j_d[] = {0, 6, 1, 5, 2, 4, 0, 6, 1, 5, 2, 4};
|
||||
static s16 ya_d[] = {
|
||||
0x0000, 0x8000, 0x0000, 0x8000, 0x0000, 0x8000,
|
||||
0x0000, 0x8000, 0x0000, 0x8000, 0x0000, 0x8000,
|
||||
0x0000, -0x8000, 0x0000, -0x8000, 0x0000, -0x8000,
|
||||
0x0000, -0x8000, 0x0000, -0x8000, 0x0000, -0x8000,
|
||||
};
|
||||
static f32 y_ad[] = {20.0f, 30.0f, 40.0f, 50.0f, 60.0f,};
|
||||
|
||||
|
||||
@@ -2909,11 +2909,11 @@ static int useHeapInit(fopAc_ac_c* a_this) {
|
||||
}
|
||||
|
||||
static s16 ya[6] = {
|
||||
-0x4000, 0x4000, 0x0000, 0x8000, 0x0000, 0x0000,
|
||||
-0x4000, 0x4000, 0x0000, -0x8000, 0x0000, 0x0000,
|
||||
};
|
||||
|
||||
static s16 xa[6] = {
|
||||
-0x4000, -0x4000, -0x4000, -0x4000, 0x0000, 0x8000,
|
||||
-0x4000, -0x4000, -0x4000, -0x4000, 0x0000, -0x8000,
|
||||
};
|
||||
|
||||
static int kabe_initial_pos_set(e_st_class* i_this) {
|
||||
|
||||
@@ -1991,7 +1991,7 @@ static void e_wb_b_ikki(e_wb_class* i_this) {
|
||||
csXyz cStack_a8;
|
||||
for (int i = 0; i < 2; i++) {
|
||||
static s16 f_ya[2] = {
|
||||
0x8000,
|
||||
-0x8000,
|
||||
0x0000,
|
||||
};
|
||||
|
||||
|
||||
@@ -1356,7 +1356,8 @@ static int daE_YK_Execute(e_yk_class* i_this) {
|
||||
i_this->mCollisionSphere.SetR(30.0f * l_HIO.mModelScale);
|
||||
|
||||
dComIfG_Ccsp()->Set(&i_this->mCollisionSphere);
|
||||
setMidnaBindEffect(_this,&i_this->mCreature,&_this->eyePos,&cXyz(0.5f,0.5f,0.5f));
|
||||
cXyz i_effSize(0.5f,0.5f,0.5f);
|
||||
setMidnaBindEffect(_this,&i_this->mCreature,&_this->eyePos,&i_effSize);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
@@ -2407,7 +2407,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
|
||||
}
|
||||
|
||||
J3DModel* model = yr->mpMorfSO->getModel();
|
||||
model->setUserArea((int)yr);
|
||||
model->setUserArea((intptr_t)yr);
|
||||
|
||||
for (u16 i = 0; i < model->getModelData()->getJointNum(); i++) {
|
||||
if (i != 0) {
|
||||
|
||||
@@ -3710,7 +3710,7 @@ BOOL daMP_WaitUntilPrepare() {
|
||||
OSMessage msg;
|
||||
OSReceiveMessage(&daMP_PrepareReadyQueue, &msg, 1);
|
||||
|
||||
if ((BOOL)msg) {
|
||||
if ((intptr_t)msg) {
|
||||
return TRUE;
|
||||
} else {
|
||||
return FALSE;
|
||||
|
||||
@@ -929,6 +929,7 @@ bool daNpcAshB_c::talk(void* param_0) {
|
||||
bool daNpcAshB_c::demo(void* param_0) {
|
||||
dEvent_manager_c& evtmgr = dComIfGp_getEventManager();
|
||||
BOOL r26 = FALSE;
|
||||
dComIfG_play_c* play;
|
||||
|
||||
switch (mMode) {
|
||||
case 0:
|
||||
@@ -940,7 +941,7 @@ bool daNpcAshB_c::demo(void* param_0) {
|
||||
case 2:
|
||||
#if VERSION != VERSION_SHIELD_DEBUG
|
||||
// TODO: gameInfo fake match to force reuse of pointer
|
||||
dComIfG_play_c* play = &g_dComIfG_gameInfo.play;
|
||||
play = &g_dComIfG_gameInfo.play;
|
||||
if (play->getEvent().runCheck() && !eventInfo.checkCommandTalk())
|
||||
#else
|
||||
if (dComIfGp_event_runCheck() && !eventInfo.checkCommandTalk())
|
||||
|
||||
@@ -266,23 +266,23 @@ static daNpcT_MotionSeqMngr_c::sequenceStepData_c l_faceMotionSequenceData[20] =
|
||||
};
|
||||
|
||||
static daNpcT_MotionSeqMngr_c::sequenceStepData_c l_motionSequenceData[84] = {
|
||||
{0, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{1, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{1, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{5, 0, 1}, {1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{6, 0, 1}, {0, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{8, 0, 1}, {0, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0xA, 0, 1}, {2, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0xB, -1, 1}, {2, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{2, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{3, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{2, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{3, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0xC, -1, 1}, {3, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0xD, -1, 1}, {3, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x10, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x12, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x13, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x10, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x12, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x13, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0xD, -1, 1}, {0xC, 0, 1}, {3, 0, 0}, {-1, 0, 0},
|
||||
{0x11, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{4, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x11, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{4, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{7, 0, 1}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0xE, 0, 1}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0xF, 0, 1}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
|
||||
@@ -325,8 +325,8 @@ daNpcBouS_HIOParam const daNpcBouS_Param_c::m = {
|
||||
100.0f,
|
||||
80.0f,
|
||||
654.78497f,
|
||||
0xEB51,
|
||||
0xA3C6,
|
||||
-0x14AF,
|
||||
-0x5C3A,
|
||||
0,
|
||||
};
|
||||
|
||||
|
||||
@@ -1377,7 +1377,7 @@ static jntTblMPrm a_jntTbl_M[16] = {
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0x14, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0xB, 0, 0xFFEE, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0xB, 0, -0x0012, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||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,
|
||||
0.0f, 0.0f, 0.0f, 0xA, 0, 0xFFE2, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0xFFF6, 0xB, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0xA, 0, -0x001E, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, -0x000A, 0xB, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 1, 0, 0,
|
||||
},
|
||||
|
||||
@@ -1553,7 +1553,7 @@ static jntTblMPrm a_jntTbl_M[16] = {
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0x14, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0xB, 0, 0xFFEE, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0xB, 0, -0x0012, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
@@ -1587,23 +1587,23 @@ static jntTblMPrm a_jntTbl_M[16] = {
|
||||
|
||||
{
|
||||
0.0f, -0.3f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0xFFEC, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0xFFCE, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0xFFBF, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0xFFF6, 5, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, -0x0014, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, -0x0032, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, -0x0041, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, -0x000A, 5, 0, 0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 0.0f, 0, 0, 0xFFBF, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0xFFF6, 5, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, -0x0014, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, -0x0032, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, -0x0041, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, -0x000A, 5, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0xA, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 8, 0, 0, 0, 0,
|
||||
@@ -1889,12 +1889,12 @@ static jntTblWPrm a_jntTbl_W[14] = {
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 8, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0xF, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0xA, 0, 0xFFE2, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0xA, 0, -0x001E, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0xA, 0xB, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 1, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0xA, 0, 0xFFE2, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0xFFF6, 0xB, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0xA, 0, -0x001E, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, -0x000A, 0xB, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 1, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
},
|
||||
@@ -2045,10 +2045,10 @@ static jntTblWPrm a_jntTbl_W[14] = {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0f, 0, -0x000A, 0xB, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 1, 0, 0,
|
||||
0.0f, 0.0f, 0.0f, 0, 0, 0, 0, 0,
|
||||
},
|
||||
|
||||
@@ -241,7 +241,7 @@ daNpcCoach_Attr_c const daNpcCoach_c::M_attr = {
|
||||
0,
|
||||
0,
|
||||
1000.0f,
|
||||
0xE000,
|
||||
-0x2000,
|
||||
0x4000,
|
||||
0,
|
||||
0xFF,
|
||||
|
||||
@@ -420,9 +420,9 @@ daNpc_Grz_HIOParam const daNpc_Grz_Param_c::m = {
|
||||
false,
|
||||
false,
|
||||
60,
|
||||
0xFFD8,
|
||||
0xFFD8,
|
||||
0xFFD8,
|
||||
-40,
|
||||
-40,
|
||||
-40,
|
||||
11.0f,
|
||||
35.0f,
|
||||
500.0f,
|
||||
|
||||
@@ -852,7 +852,7 @@ BOOL daNpc_GWolf_c::isDelete() {
|
||||
0x0153, 0x01EC, 0x01ED, 0x01EE, 0x01EF, 0x01F0, 0x01F1,
|
||||
};
|
||||
static s16 l_playerNoList[7] = {
|
||||
0xFFFF, 2, 3, 4, 5, 6, 7,
|
||||
-1, 2, 3, 4, 5, 6, 7,
|
||||
};
|
||||
|
||||
if (mType == 3 || mType == 2) {
|
||||
|
||||
@@ -142,7 +142,7 @@ daNpc_Jagar_HIOParam const daNpc_Jagar_Param_c::m = {
|
||||
35.0f, 30.0f, 0.0f, 0.0f, 10.0f, -10.0f,
|
||||
30.0f, -10.0f, 45.0f, -45.0f, 0.6f, 12.0f,
|
||||
3, 6, 5, 6, 110.0f, 500.0f, 300.0f, -300.0f,
|
||||
60, 8, 0, 0, 0, 0.0f, 0.0f, 4.0f, 0.0f, 0.0f,
|
||||
60, 8, 0, 0, 0, 0, 0, 4.0f, 0.0f, 0.0f,
|
||||
0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
|
||||
// Jagar-specific:
|
||||
1400.0f, 200.0f, -800.0f, 16.0f, 1800.0f,
|
||||
|
||||
@@ -726,6 +726,7 @@ BOOL daNpcKasiKyu_c::chkFindPlayer() {
|
||||
}
|
||||
|
||||
int daNpcKasiKyu_c::wait(int param_1) {
|
||||
dComIfG_play_c* play;
|
||||
switch (mMode) {
|
||||
case -1:
|
||||
break;
|
||||
@@ -774,7 +775,7 @@ int daNpcKasiKyu_c::wait(int param_1) {
|
||||
|
||||
#if VERSION != VERSION_SHIELD_DEBUG
|
||||
// TODO: gameInfo fake match to force reuse of pointer
|
||||
dComIfG_play_c* play = &g_dComIfG_gameInfo.play;
|
||||
play = &g_dComIfG_gameInfo.play;
|
||||
if (play->getEvent().runCheck())
|
||||
#else
|
||||
if (dComIfGp_event_runCheck())
|
||||
|
||||
@@ -787,7 +787,7 @@ u8 daNpc_Kn_c::getPath() {
|
||||
|
||||
BOOL daNpc_Kn_c::isDelete() {
|
||||
static s16 l_appearFlag[7] = {
|
||||
0xFFFF, 0x0153, 0x0152, 0x0154, 0x0155, 0x0156, 0x0157,
|
||||
-1, 0x0153, 0x0152, 0x0154, 0x0155, 0x0156, 0x0157,
|
||||
};
|
||||
static s16 l_delFlag[7] = {
|
||||
0x0153, 0x0152, 0x0154, 0x0155, 0x0156, 0x0157, 0x0158,
|
||||
@@ -832,7 +832,7 @@ void daNpc_Kn_c::resetCol() {
|
||||
|
||||
void daNpc_Kn_c::reset() {
|
||||
initialize();
|
||||
memset(&mpTeachAction, 0, (int)&field_0x1754 - (int)&mpTeachAction);
|
||||
memset(&mpTeachAction, 0, (intptr_t)&field_0x1754 - (intptr_t)&mpTeachAction);
|
||||
|
||||
if (mpMatAnm != NULL) {
|
||||
mpMatAnm->initialize();
|
||||
|
||||
@@ -797,7 +797,7 @@ void daNpc_Kn_c::evtChange() {
|
||||
void daNpc_Kn_c::clrParam() {
|
||||
field_0xDB2 = mCurAngle;
|
||||
mCutType = 0;
|
||||
memset((void*)&mEvtNo, 0, (int)(void*)&field_0xe3c - (int)(void*)&mEvtNo); // fake match?
|
||||
memset((void*)&mEvtNo, 0, (intptr_t)(void*)&field_0xe3c - (intptr_t)(void*)&mEvtNo); // fake match?
|
||||
mJntAnm.clrDirectFlag();
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ static daNpcT_evtData_c l_evtList[3] = {
|
||||
|
||||
static char* l_resNameList[2] = {"", "seiB"};
|
||||
|
||||
static s8 l_loadResPtrn0[2] = {1, 0xFF};
|
||||
static s8 l_loadResPtrn0[2] = {1, -1};
|
||||
|
||||
static s8* l_loadResPtrnList[2] = {
|
||||
l_loadResPtrn0,
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "d/d_msg_object.h"
|
||||
#include "f_op/f_op_actor.h"
|
||||
#include "f_op/f_op_camera_mng.h"
|
||||
#include "types.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
daNpc_Maro_c::actionFunc dummy_lit_3931() {
|
||||
return &daNpc_Maro_c::choccai;
|
||||
|
||||
@@ -439,7 +439,7 @@ const daNpcWrestler_HIOParam daNpcWrestler_Param_c::m = {
|
||||
10.0f,
|
||||
400,
|
||||
400,
|
||||
0xFF00,
|
||||
-0x0100,
|
||||
400.0f,
|
||||
14,
|
||||
11,
|
||||
|
||||
@@ -461,7 +461,7 @@ static daNpcT_MotionSeqMngr_c::sequenceStepData_c l_faceMotionSequenceData[64] =
|
||||
};
|
||||
|
||||
static daNpcT_MotionSeqMngr_c::sequenceStepData_c l_motionSequenceData[188] = {
|
||||
{0, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{1, -1, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{7, -1, 1}, {0, -1, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{8, -1, 1}, {0, -1, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
@@ -470,7 +470,7 @@ static daNpcT_MotionSeqMngr_c::sequenceStepData_c l_motionSequenceData[188] = {
|
||||
{0xC, -1, 1}, {0, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0xD, -1, 1}, {0, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0xD, -1, 1}, {2, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{2, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{2, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{5, -1, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0xF, -1, 1}, {6, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x10, -1, 1}, {0, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
@@ -485,7 +485,7 @@ static daNpcT_MotionSeqMngr_c::sequenceStepData_c l_motionSequenceData[188] = {
|
||||
{0x2C, -1, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x2D, -1, 1}, {0x2E, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x29, -1, 1}, {0x2E, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x2E, 0xF7, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x2E, -9, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x2F, -1, 1}, {0x30, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{0x30, -1, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
{4, -1, 0}, {-1, 0, 0}, {-1, 0, 0}, {-1, 0, 0},
|
||||
|
||||
@@ -27,7 +27,7 @@ static char* l_resNameList[2] = {
|
||||
};
|
||||
|
||||
static s8 l_loadResPtrn0[2] = {
|
||||
1, 0xFF
|
||||
1, -1
|
||||
};
|
||||
|
||||
static s8* l_loadResPtrnList[2] = {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "d/dolzel_rel.h" // IWYU pragma: keep
|
||||
|
||||
#include "d/actor/d_a_obj_TvCdlst.h"
|
||||
#include "include/d/d_com_inf_game.h"
|
||||
#include "d/d_com_inf_game.h"
|
||||
|
||||
static daTvCdlst_HIO_c l_HIO;
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ static Vec const l_craw_offset[4] = {
|
||||
s16 const daObjBm_c::M_dir_base[4] = {
|
||||
0x0000,
|
||||
0x4000,
|
||||
0x8000,
|
||||
0xC000,
|
||||
-0x8000,
|
||||
-0x4000,
|
||||
};
|
||||
|
||||
static const char* l_arcName = "Obj_bm";
|
||||
|
||||
@@ -161,7 +161,7 @@ static actor_method_class l_daBkLeaf_Method = {
|
||||
|
||||
extern actor_process_profile_definition g_profile_Obj_BkLeaf = {fpcLy_CURRENT_e,
|
||||
7,
|
||||
fpcLy_CURRENT_e,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_Obj_BkLeaf,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daBkLeaf_c),
|
||||
|
||||
@@ -601,7 +601,7 @@ static void himo_cut_control1(obj_brg_class* i_this, cXyz* param_1, f32 param_2)
|
||||
sp74.y = 0.0f;
|
||||
sp74.z = param_2;
|
||||
|
||||
int i, temp_r27 = (int) ++param_1;
|
||||
int i, temp_r27 = (intptr_t) ++param_1;
|
||||
f32 var_f31, var_f30, var_f29, var_f28, var_f27;
|
||||
for (i = 1; i < 5; i++, param_1++) {
|
||||
var_f28 = i_this->field_0xaf30 * cM_ssin( (i_this->field_0xaf20 * 6000) + (NREG_S(3) - 10000) * (temp_r27 + i) )
|
||||
|
||||
@@ -327,7 +327,7 @@ int daObjDrop_c::modeWait() {
|
||||
case 3:
|
||||
removeBodyEffect();
|
||||
|
||||
static const s16 target_rel_angle[] = {0xC000, 0x0000, 0x4000};
|
||||
static const s16 target_rel_angle[] = {-0x4000, 0x0000, 0x4000};
|
||||
static const s16 target_angle_x[] = {0x0000, 0x2000, 0x0000};
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
|
||||
@@ -203,7 +203,7 @@ static char* l_evtNameList[2] = {
|
||||
};
|
||||
|
||||
static u16 l_entryJntNoList[4] = {
|
||||
5, 6, 7, -1,
|
||||
5, 6, 7, 0xFFFF,
|
||||
};
|
||||
|
||||
static int jointCtrlCallBack(J3DJoint* i_joint, int param_2) {
|
||||
@@ -368,7 +368,7 @@ static const f32 l_bgcParam[20] = {
|
||||
-0.5f, 1.0f, 0.5f, -1.0f,
|
||||
};
|
||||
|
||||
const s16 l_dirToAngleTBL[4] = {0, 0x4000, 0x8000, 0xC000};
|
||||
const s16 l_dirToAngleTBL[4] = {0, 0x4000, -0x8000, -0x4000};
|
||||
|
||||
int daObj_GrA_c::CreateHeap() {
|
||||
J3DModelData* aMdlData_p = NULL;
|
||||
|
||||
@@ -114,7 +114,7 @@ static const Vec l_dir_vec[4] = {
|
||||
{-1.0f, 0.0f, 0.0f},
|
||||
};
|
||||
|
||||
static const s16 l_dir_angle[4] = {0x0000, 0x4000, 0x8000, 0xC000};
|
||||
static const s16 l_dir_angle[4] = {0x0000, 0x4000, -0x8000, -0x4000};
|
||||
|
||||
const static dCcD_SrcCyl l_cyl_src = {
|
||||
{
|
||||
@@ -424,7 +424,7 @@ void daObjIceBlk_c::clrCounter() {
|
||||
|
||||
void daObjIceBlk_c::mode_proc_call() {
|
||||
typedef void (daObjIceBlk_c::*modeProc)(void);
|
||||
static modeProc l_func[] = {&mode_proc_wait, &mode_proc_walk};
|
||||
static modeProc l_func[] = {&daObjIceBlk_c::mode_proc_wait, &daObjIceBlk_c::mode_proc_walk};
|
||||
|
||||
if (getSwbit2() != 0xFF && !fopAcM_isSwitch(this, getSwbit2())) {
|
||||
mCcCyl.OnAtSPrmBit(1);
|
||||
@@ -730,7 +730,7 @@ BOOL daObjIceBlk_c::checkFall() {
|
||||
|
||||
void daObjIceBlk_c::event_proc_call() {
|
||||
typedef void (daObjIceBlk_c::*actionFunc)(void);
|
||||
static actionFunc l_func[] = {&actionWait, &actionOrderEvent, &actionEvent, &actionDead};
|
||||
static actionFunc l_func[] = {&daObjIceBlk_c::actionWait, &daObjIceBlk_c::actionOrderEvent, &daObjIceBlk_c::actionEvent, &daObjIceBlk_c::actionDead};
|
||||
|
||||
(this->*l_func[mAction])();
|
||||
}
|
||||
|
||||
@@ -112,14 +112,14 @@ static char* l_kn2_bmdidx[] = {
|
||||
};
|
||||
|
||||
static s16 dKn2_CarryOffset[] = {
|
||||
0xD07D,
|
||||
0xBA21,
|
||||
0xBA21,
|
||||
0xE37E,
|
||||
-0x2f83,
|
||||
-0x45df,
|
||||
-0x45df,
|
||||
-0x1c82,
|
||||
0x1D9F,
|
||||
0xB36C,
|
||||
0xC9C8,
|
||||
0xC66D,
|
||||
-0x4c94,
|
||||
-0x3638,
|
||||
-0x3993,
|
||||
};
|
||||
|
||||
static struct {
|
||||
|
||||
@@ -84,7 +84,7 @@ void daObjKznkarm_Hio_c::genMessage(JORMContext* ctx) {
|
||||
-5.0f, -30.0f, 0.6f, 0.94f,
|
||||
40.0f, 40.0f, -60.0f,
|
||||
-6.0f, -6.0f, -60.0f, 0.0f,
|
||||
12.0f, 0, 0x1000, 0, 0xE000,
|
||||
12.0f, 0, 0x1000, 0, -0x2000,
|
||||
};
|
||||
|
||||
static char* l_arcName = "J_Kazami";
|
||||
|
||||
@@ -59,7 +59,7 @@ static int target_info_count;
|
||||
static void* s_ks_sub(void* param_1, void* param_2) {
|
||||
if (fopAcM_IsActor(param_1) && fopAcM_GetName(param_1) == 0x60) {
|
||||
if (target_info_count < 10) {
|
||||
target_info[target_info_count] = (int)param_1;
|
||||
target_info[target_info_count] = (intptr_t)param_1;
|
||||
target_info_count++;
|
||||
}
|
||||
return param_1;
|
||||
@@ -220,7 +220,7 @@ static int daObj_Lp_Execute(obj_lp_class* i_this) {
|
||||
target_info[i] = 0;
|
||||
}
|
||||
|
||||
target_info[0] = (int)dComIfGp_getPlayer(0);
|
||||
target_info[0] = (intptr_t)dComIfGp_getPlayer(0);
|
||||
target_info_count = 1;
|
||||
|
||||
if (strcmp(dComIfGp_getStartStageName(), "D_MN05") == 0) {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
#include "m_Do/m_Do_ext.h"
|
||||
#include "m_Do/m_Do_mtx.h"
|
||||
#include "types.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
daObj_Maki_HIO_c::daObj_Maki_HIO_c() {
|
||||
field_0x4 = -1;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "d/d_a_obj.h"
|
||||
#include "dolphin/mtx.h"
|
||||
#include "f_op/f_op_actor.h"
|
||||
#include "include/SSystem/SComponent/c_math.h"
|
||||
#include "SSystem/SComponent/c_math.h"
|
||||
|
||||
// clang-format off
|
||||
daObjNameplate_c::M_attrs const daObjNameplate_c::M_attr = {
|
||||
|
||||
@@ -60,7 +60,7 @@ int daObjProp_c::draw() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const s16 ADD_ANGLE[] = {0x1800, 0xE800};
|
||||
static const s16 ADD_ANGLE[] = {0x1800, -0x1800};
|
||||
|
||||
int daObjProp_c::execute() {
|
||||
shape_angle.y += ADD_ANGLE[mArg];
|
||||
|
||||
@@ -65,7 +65,7 @@ int Sakuita_c::setModelData(J3DModelData* i_modelData) {
|
||||
}
|
||||
|
||||
daObjItaRope_Attr_c const daObjItaRope_c::M_attr = {
|
||||
-5.0f, 0.2f, 0.5f, 0.8f, 0.0f,
|
||||
-5.0f, 0.2f, 0.5f, 0.8f, 0,
|
||||
};
|
||||
|
||||
void Sakuita_c::create(cXyz* param_1, s16 param_2, s8 param_3) {
|
||||
|
||||
@@ -27,14 +27,14 @@ static char* l_resNameList[3] = {
|
||||
};
|
||||
|
||||
static s8 l_loadResPtrn0[2] = {
|
||||
0x01,
|
||||
0xFF,
|
||||
1,
|
||||
-1,
|
||||
};
|
||||
|
||||
static s8 l_loadResPtrn1[3] = {
|
||||
0x01,
|
||||
0x02,
|
||||
0xFF,
|
||||
1,
|
||||
2,
|
||||
-1,
|
||||
};
|
||||
|
||||
static s8* l_loadResPtrnList[8] = {
|
||||
@@ -836,7 +836,7 @@ int daObj_Sekizoa_c::setYariAnm(int i_frame, int i_mode, f32 i_morf) {
|
||||
u32 param_0;
|
||||
u32 param_1;
|
||||
} yariAnmData[24] = {
|
||||
{-1, 0},
|
||||
{0xFFFFFFFF, 0},
|
||||
{ANM_YARIA_STILL_L, 1},
|
||||
{ANM_YARIA_STILL_L, 1},
|
||||
{ANM_YARIA_STILL_L, 1},
|
||||
|
||||
@@ -21,10 +21,10 @@ static char* l_resNameList[2] = {
|
||||
static s8 l_tileMoveData[21][4] = {
|
||||
0x01, 0x03, 0x05, 0x01, 0x01, 0x02, 0x04, 0x01, 0x01, 0x01, 0x03, 0x01, 0x01, 0x02,
|
||||
0x04, 0x00, 0x00, 0x02, 0x03, 0x01, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x01,
|
||||
0x00, 0xFF, 0x02, 0x01, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
|
||||
0x00, 0x04, 0x00, 0x00, 0x01, 0x03, 0x00, 0xFF, 0x02, 0x03, 0xFF, 0x02, 0x04, 0x00,
|
||||
0x00, 0x02, 0x03, 0x02, 0xFF, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0xFF,
|
||||
0x02, 0x02, 0xFF, 0x03, 0x05, 0x02, 0xFF, 0x02, 0x04, 0x02, 0xFF, 0x01, 0x03, 0x02,
|
||||
0x00, -0x1, 0x02, 0x01, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
|
||||
0x00, 0x04, 0x00, 0x00, 0x01, 0x03, 0x00, -0x1, 0x02, 0x03, -0x1, 0x02, 0x04, 0x00,
|
||||
0x00, 0x02, 0x03, 0x02, -0x1, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, -0x1,
|
||||
0x02, 0x02, -0x1, 0x03, 0x05, 0x02, -0x1, 0x02, 0x04, 0x02, -0x1, 0x01, 0x03, 0x02,
|
||||
};
|
||||
|
||||
daObj_SMTile_c::~daObj_SMTile_c() {
|
||||
|
||||
@@ -374,7 +374,7 @@ static actor_method_class daObj_SSItem_MethodTable = {
|
||||
extern actor_process_profile_definition g_profile_OBJ_SSITEM = {
|
||||
fpcLy_CURRENT_e,
|
||||
7,
|
||||
fpcLy_CURRENT_e,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_OBJ_SSITEM,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daObj_SSItem_c),
|
||||
|
||||
@@ -46,19 +46,19 @@ static int const l_bmdIdx[13] = {
|
||||
6, 6, 6, -1, -1, -1, 6, 6, 6, 6, 6, 6, -1,
|
||||
};
|
||||
|
||||
static u32 const l_dzbIdx[13] = {
|
||||
static int const l_dzbIdx[13] = {
|
||||
15, 15, 15, -1, -1, -1, 15, 15, 15, 15, 15, 15, -1,
|
||||
};
|
||||
|
||||
static u32 const l_btkIdx[13] = {
|
||||
static int const l_btkIdx[13] = {
|
||||
12, 12, 12, -1, -1, -1, 12, 12, 12, 12, 12, 12, -1,
|
||||
};
|
||||
|
||||
static u32 const l_brkIdx[13] = {
|
||||
static int const l_brkIdx[13] = {
|
||||
9, 9, 9, -1, -1, -1, 9, 9, 9, 9, 9, 9, -1,
|
||||
};
|
||||
|
||||
static u32 const l_twFlagIdx[13] = {
|
||||
static int const l_twFlagIdx[13] = {
|
||||
0, 1, 2, 4, -1, -1, 0, 1, 1, 2, 2, 4, 4,
|
||||
};
|
||||
|
||||
|
||||
@@ -64,8 +64,8 @@ static const s16 l_open_limit_max[3] = {
|
||||
|
||||
static const s16 l_open_limit_min[3] = {
|
||||
0x1388,
|
||||
0xAAAB,
|
||||
0xAE39,
|
||||
-0x5555,
|
||||
-0x51C7,
|
||||
};
|
||||
|
||||
static const s16 l_open_speed[3] = {
|
||||
|
||||
@@ -288,8 +288,10 @@ void daTagLv6Gate_c::create_init() {
|
||||
initBaseMtx();
|
||||
|
||||
if (!fopAcM_isSwitch(this, getSwitchNo1())) {
|
||||
parentActorID = fopAcM_create(PROC_NPC_TKS, 2, &cXyz(-13.272481f, 2887.0f, -10373.718f),
|
||||
fopAcM_GetRoomNo(this), &csXyz(0, 0x7FFF, 0), NULL, -1);
|
||||
cXyz i_pos(-13.272481f, 2887.0f, -10373.718f);
|
||||
csXyz i_angle(0, 0x7FFF, 0);
|
||||
parentActorID = fopAcM_create(PROC_NPC_TKS, 2, &i_pos,
|
||||
fopAcM_GetRoomNo(this), &i_angle, NULL, -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -235,7 +235,7 @@ static actor_method_class daTag_Evt_MethodTable = {
|
||||
extern actor_process_profile_definition g_profile_TAG_EVT = {
|
||||
fpcLy_CURRENT_e,
|
||||
7,
|
||||
fpcLy_CURRENT_e,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_TAG_EVT,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daTag_Evt_c),
|
||||
|
||||
@@ -162,7 +162,7 @@ static actor_method_class daTag_MynaLight_MethodTable = {
|
||||
extern actor_process_profile_definition g_profile_TAG_MNLIGHT = {
|
||||
fpcLy_CURRENT_e,
|
||||
7,
|
||||
fpcLy_CURRENT_e,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_TAG_MNLIGHT,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daTag_MynaLight_c),
|
||||
|
||||
@@ -69,7 +69,7 @@ static actor_method_class l_daTagPati_Method = {
|
||||
extern actor_process_profile_definition g_profile_TAG_PATI = {
|
||||
fpcLy_CURRENT_e,
|
||||
7,
|
||||
fpcLy_CURRENT_e,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_TAG_PATI,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daTagPati_c),
|
||||
|
||||
@@ -159,7 +159,7 @@ static actor_method_class daTag_Push_MethodTable = {
|
||||
extern actor_process_profile_definition g_profile_TAG_PUSH = {
|
||||
fpcLy_CURRENT_e,
|
||||
8,
|
||||
fpcLy_CURRENT_e,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_TAG_PUSH,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daTag_Push_c),
|
||||
|
||||
@@ -267,7 +267,7 @@ static actor_method_class daTag_SSDrink_MethodTable = {
|
||||
extern actor_process_profile_definition g_profile_TAG_SSDRINK = {
|
||||
fpcLy_CURRENT_e,
|
||||
7,
|
||||
fpcLy_CURRENT_e,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_TAG_SSDRINK,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daTag_SSDrink_c),
|
||||
|
||||
@@ -317,9 +317,9 @@ def convert_binary_to_matDL_c_source(src_path, dest_path, symbol_name, scope):
|
||||
macro_name = os.path.splitext(os.path.basename(src_path))[0]
|
||||
with open(src_path, "rb") as binary_file, open(dest_path, "w") as c_file:
|
||||
c_file.write("#ifndef LOAD_BP_REG\n")
|
||||
c_file.write("#define U32_AS_U8(v) (((v) >> 24) & 0xFF), (((v) >> 16) & 0xFF), (((v) >> 8) & 0xFF), (((v) >> 0) & 0xFF)\n")
|
||||
c_file.write("#define U24_AS_U8(v) (((v) >> 16) & 0xFF), (((v) >> 8) & 0xFF), (((v) >> 0) & 0xFF)\n")
|
||||
c_file.write("#define U16_AS_U8(v) (((v) >> 8) & 0xFF), (((v) >> 0) & 0xFF)\n")
|
||||
c_file.write("#define U32_AS_U8(v) (u8)(((v) >> 24) & 0xFF), (u8)(((v) >> 16) & 0xFF), (u8)(((v) >> 8) & 0xFF), (u8)(((v) >> 0) & 0xFF)\n")
|
||||
c_file.write("#define U24_AS_U8(v) (u8)(((v) >> 16) & 0xFF), (u8)(((v) >> 8) & 0xFF), (u8)(((v) >> 0) & 0xFF)\n")
|
||||
c_file.write("#define U16_AS_U8(v) (u8)(((v) >> 8) & 0xFF), (u8)(((v) >> 0) & 0xFF)\n")
|
||||
c_file.write("#define IMAGE_ADDR(addr) (u32)(addr) >> 5\n")
|
||||
c_file.write("#define LOAD_BP_REG(reg, value) GX_CMD_LOAD_BP_REG, reg, U24_AS_U8(value)\n")
|
||||
c_file.write("#define LOAD_XF_REG(reg, num_args, ...) GX_CMD_LOAD_XF_REG, U16_AS_U8(num_args-1), U16_AS_U8(reg), __VA_ARGS__\n")
|
||||
|
||||
Reference in New Issue
Block a user