mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-28 23:15:32 -04:00
d_attention / d_demo / d_lib work
This commit is contained in:
+147
-193
@@ -4,11 +4,13 @@
|
||||
//
|
||||
|
||||
#include "d/com/d_com_static.h"
|
||||
#include "d/com/d_com_inf_game.h"
|
||||
#include "d/d_demo.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
#include "rel/d/a/tag/d_a_tag_magne/d_a_tag_magne.h"
|
||||
#include "rel/d/a/d_a_movie_player/d_a_movie_player.h"
|
||||
#include "rel/d/a/obj/d_a_obj_carry/d_a_obj_carry.h"
|
||||
#include "d/com/d_com_inf_game.h"
|
||||
#include "rel/d/a/tag/d_a_tag_magne/d_a_tag_magne.h"
|
||||
|
||||
//
|
||||
// Types:
|
||||
@@ -27,11 +29,13 @@ struct daTagStream_c {
|
||||
};
|
||||
|
||||
struct daTagMist_c {
|
||||
/* 80031CF0 */ void getPlayerNo();
|
||||
/* 80031CF0 */ static u8 getPlayerNo();
|
||||
|
||||
static u8 mPlayerNo;
|
||||
};
|
||||
|
||||
struct daSetBgObj_c {
|
||||
/* 80031870 */ void getArcName(fopAc_ac_c*);
|
||||
/* 80031870 */ static const char* getArcName(fopAc_ac_c*);
|
||||
};
|
||||
|
||||
struct daObjMovebox {
|
||||
@@ -48,15 +52,6 @@ struct daMirror_c {
|
||||
static u8 m_myObj[4];
|
||||
};
|
||||
|
||||
struct daMP_c {
|
||||
/* 80031A78 */ void daMP_c_Get_MovieRestFrame();
|
||||
/* 80031AA4 */ void daMP_c_Set_PercentMovieVolume(f32);
|
||||
/* 80031AD0 */ void daMP_c_THPPlayerPlay();
|
||||
/* 80031B24 */ void daMP_c_THPPlayerPause();
|
||||
|
||||
static u8 m_myObj[4];
|
||||
};
|
||||
|
||||
struct daGrass_c {
|
||||
/* 800319C8 */ void deleteRoomGrass(int);
|
||||
/* 80031A20 */ void deleteRoomFlower(int);
|
||||
@@ -67,7 +62,7 @@ struct daGrass_c {
|
||||
};
|
||||
|
||||
struct daDsh_c {
|
||||
static u32 OPEN_SIZE;
|
||||
static f32 OPEN_SIZE;
|
||||
static f32 OPEN_ACCEL;
|
||||
static f32 OPEN_SPEED;
|
||||
static f32 OPEN_BOUND_SPEED;
|
||||
@@ -86,10 +81,6 @@ struct dFlower_packet_c {
|
||||
static u8 m_deleteRoom[12];
|
||||
};
|
||||
|
||||
struct dDemo_c {
|
||||
static u8 m_status[4];
|
||||
};
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
@@ -205,6 +196,7 @@ extern "C" void _restgpr_28();
|
||||
extern "C" void _restgpr_29();
|
||||
extern "C" extern u8 const __ptmf_null[12 + 4 /* padding */];
|
||||
extern "C" u8 m_status__7dDemo_c[4];
|
||||
extern "C" extern u8 mPlayerNo__11daTagMist_c[4];
|
||||
|
||||
//
|
||||
// Declarations:
|
||||
@@ -212,67 +204,102 @@ extern "C" u8 m_status__7dDemo_c[4];
|
||||
|
||||
/* 80030F14-80030FBC 02B854 00A8+00 1/1 0/0 0/0 .text
|
||||
* set__Q27daSus_c6data_cFScRC4cXyzRC4cXyzUcUcUc */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daSus_c::data_c::set(s8 param_0, cXyz const& param_1, cXyz const& param_2, u8 param_3,
|
||||
u8 param_4, u8 param_5) {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/set__Q27daSus_c6data_cFScRC4cXyzRC4cXyzUcUcUc.s"
|
||||
void daSus_c::data_c::set(s8 i_roomNo, cXyz const& param_1, cXyz const& param_2, u8 param_3,
|
||||
u8 param_4, u8 i_type) {
|
||||
mRoomNo = i_roomNo;
|
||||
field_0x8.set(param_1.x - param_2.x, param_1.y, param_1.z - param_2.z);
|
||||
field_0x14.set(param_1.x + param_2.x, param_1.y + param_2.y, param_1.z + param_2.z);
|
||||
field_0x2 = param_3;
|
||||
field_0x1 = param_4 != 0;
|
||||
field_0x3 = isSwitch() == false;
|
||||
mType = i_type;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80030FBC-80030FCC 02B8FC 0010+00 3/3 0/0 0/0 .text reset__Q27daSus_c6data_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daSus_c::data_c::reset() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/reset__Q27daSus_c6data_cFv.s"
|
||||
daSus_c::data_c* daSus_c::data_c::reset() {
|
||||
mRoomNo = -1;
|
||||
return mpNext;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80030FCC-80031038 02B90C 006C+00 2/2 0/0 0/0 .text isSwitch__Q27daSus_c6data_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daSus_c::data_c::isSwitch() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/isSwitch__Q27daSus_c6data_cFv.s"
|
||||
u8 daSus_c::data_c::isSwitch() {
|
||||
if (field_0x1 & 1) {
|
||||
return dComIfGs_isSwitch(field_0x2, mRoomNo);
|
||||
} else {
|
||||
return dComIfGs_isSwitch(field_0x2, mRoomNo) == false;
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80031038-800310C8 02B978 0090+00 2/2 0/0 0/0 .text check__Q27daSus_c6data_cFRC4cXyz */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daSus_c::data_c::check(cXyz const& param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/check__Q27daSus_c6data_cFRC4cXyz.s"
|
||||
bool daSus_c::data_c::check(cXyz const& i_pos) {
|
||||
if (field_0x3 != 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((field_0x8.x <= i_pos.x && i_pos.x <= field_0x14.x) &&
|
||||
(field_0x8.y <= i_pos.y && i_pos.y <= field_0x14.y) &&
|
||||
(field_0x8.z <= i_pos.z && i_pos.z <= field_0x14.z)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 800310C8-80031150 02BA08 0088+00 1/1 0/0 0/0 .text check__Q27daSus_c6data_cFP10fopAc_ac_c */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daSus_c::data_c::check(fopAc_ac_c* param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/check__Q27daSus_c6data_cFP10fopAc_ac_c.s"
|
||||
u8 daSus_c::data_c::check(fopAc_ac_c* i_actor) {
|
||||
if (field_0x3) {
|
||||
return 0x80;
|
||||
}
|
||||
|
||||
u8 tmp = 0x80;
|
||||
|
||||
if (check(i_actor->orig.pos)) {
|
||||
tmp |= 1;
|
||||
}
|
||||
|
||||
if (check(i_actor->current.pos)) {
|
||||
tmp |= 2;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
return tmp;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80031150-80031190 02BA90 0040+00 1/1 0/0 0/0 .text execute__Q27daSus_c6data_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daSus_c::data_c::execute() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/execute__Q27daSus_c6data_cFv.s"
|
||||
void daSus_c::data_c::execute() {
|
||||
u8 sw = isSwitch();
|
||||
if (sw != field_0x3) {
|
||||
field_0x3 = sw;
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80031190-800311FC 02BAD0 006C+00 1/1 0/0 0/0 .text add__Q27daSus_c6room_cFPQ27daSus_c6data_c */
|
||||
// instruction reorder
|
||||
#ifdef NONMATCHING
|
||||
void daSus_c::room_c::add(daSus_c::data_c* i_data) {
|
||||
if (mpData == NULL) {
|
||||
mpData = i_data;
|
||||
i_data->setNext(NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
if (i_data->getType() == 0) {
|
||||
i_data->setNext(mpData);
|
||||
mpData = i_data;
|
||||
return;
|
||||
}
|
||||
|
||||
daSus_c::data_c* data1 = mpData;
|
||||
daSus_c::data_c* data2 = data1->getNext();
|
||||
while (data1->getType() == 0 && data2 != NULL) {
|
||||
data1 = data2;
|
||||
data2 = data2->getNext();
|
||||
}
|
||||
|
||||
i_data->setNext(data1->getNext());
|
||||
data1->setNext(i_data);
|
||||
}
|
||||
#else
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
@@ -281,16 +308,14 @@ asm void daSus_c::room_c::add(daSus_c::data_c* param_0) {
|
||||
#include "asm/d/com/d_com_static/add__Q27daSus_c6room_cFPQ27daSus_c6data_c.s"
|
||||
}
|
||||
#pragma pop
|
||||
#endif
|
||||
|
||||
/* 800311FC-80031248 02BB3C 004C+00 0/0 0/0 1/1 .text reset__Q27daSus_c6room_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daSus_c::room_c::reset() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/reset__Q27daSus_c6room_cFv.s"
|
||||
void daSus_c::room_c::reset() {
|
||||
while (mpData != NULL && mpData->getType() == 0) {
|
||||
mpData = mpData->reset();
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80423FF0-80423FFC 050D10 000C+00 1/1 0/0 0/0 .bss @3840 */
|
||||
@@ -304,9 +329,11 @@ u8 daSus_c::mRoom[256];
|
||||
|
||||
/* 80450D88-80450D8C -00001 0004+00 1/1 0/0 2/2 .sbss None */
|
||||
/* 80450D88 0002+00 data_80450D88 m_count__9daArrow_c */
|
||||
extern s16 m_count__9daArrow_c;
|
||||
s16 m_count__9daArrow_c;
|
||||
|
||||
/* 80450D8A 0002+00 data_80450D8A mSetTop__7daSus_c */
|
||||
extern u8 struct_80450D88[4];
|
||||
u8 struct_80450D88[4];
|
||||
s16 daSus_c::mSetTop;
|
||||
|
||||
/* 80031248-800313BC 02BB88 0174+00 0/0 0/0 1/1 .text newData__7daSus_cFScRC4cXyzRC4cXyzUcUcUc */
|
||||
#pragma push
|
||||
@@ -360,102 +387,55 @@ asm void daSus_c::execute() {
|
||||
#pragma pop
|
||||
|
||||
/* 8003160C-80031648 02BF4C 003C+00 0/0 0/0 1/1 .text daNpcMsg_setEvtNum__FUc */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daNpcMsg_setEvtNum(u8 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daNpcMsg_setEvtNum__FUc.s"
|
||||
int daNpcMsg_setEvtNum(u8 iEvtNum) {
|
||||
dComIfGs_setTmpReg(0xFDFF, iEvtNum);
|
||||
return 1;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 803790B0-803790B0 005710 0000+00 0/0 0/0 0/0 .rodata @stringBase0 */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803790B0 = "F_SP103";
|
||||
#pragma pop
|
||||
|
||||
/* 80031648-800316A8 02BF88 0060+00 0/0 0/0 6/6 .text daNpcKakashi_chkSwdTutorialStage__Fv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daNpcKakashi_chkSwdTutorialStage() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daNpcKakashi_chkSwdTutorialStage__Fv.s"
|
||||
BOOL daNpcKakashi_chkSwdTutorialStage() {
|
||||
return !strcmp(dComIfGp_getStartStageName(), "F_SP103") && dComIfG_play_c::getLayerNo(0) == 8;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 800316A8-800316E0 02BFE8 0038+00 0/0 0/0 3/3 .text daNpcKakashi_setSwdTutorialStep__FUc */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daNpcKakashi_setSwdTutorialStep(u8 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daNpcKakashi_setSwdTutorialStep__FUc.s"
|
||||
void daNpcKakashi_setSwdTutorialStep(u8 iEvtNum) {
|
||||
dComIfGs_setTmpReg(0xFF0F, iEvtNum);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 800316E0-80031718 02C020 0038+00 0/0 1/1 4/4 .text daNpcKakashi_getSwdTutorialStep__Fv
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm int daNpcKakashi_getSwdTutorialStep() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daNpcKakashi_getSwdTutorialStep__Fv.s"
|
||||
int daNpcKakashi_getSwdTutorialStep() {
|
||||
return dComIfGs_getTmpReg(0xFF0F);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80031718-80031754 02C058 003C+00 0/0 1/1 0/0 .text daNpcKakashi_getSwdTutorialResult__Fv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daNpcKakashi_getSwdTutorialResult() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daNpcKakashi_getSwdTutorialResult__Fv.s"
|
||||
bool daNpcKakashi_getSwdTutorialResult() {
|
||||
return dComIfGs_isTmpBit(0x40);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80031754-800317A4 02C094 0050+00 0/0 0/0 1/1 .text daNpcKakashi_setSwdTutorialResult__Fb */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daNpcKakashi_setSwdTutorialResult(bool param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daNpcKakashi_setSwdTutorialResult__Fb.s"
|
||||
void daNpcKakashi_setSwdTutorialResult(bool param_0) {
|
||||
if (param_0) {
|
||||
dComIfGs_onTmpBit(0x40);
|
||||
} else {
|
||||
dComIfGs_offTmpBit(0x40);
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 800317A4-800317DC 02C0E4 0038+00 0/0 1/1 1/1 .text daNpcKakashi_getSuccessCount__Fv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daNpcKakashi_getSuccessCount() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daNpcKakashi_getSuccessCount__Fv.s"
|
||||
int daNpcKakashi_getSuccessCount() {
|
||||
return dComIfGs_getTmpReg(0xFEFF);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 800317DC-80031838 02C11C 005C+00 0/0 0/0 1/1 .text daNpcKakashi_incSuccessCount__Fv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daNpcKakashi_incSuccessCount() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daNpcKakashi_incSuccessCount__Fv.s"
|
||||
void daNpcKakashi_incSuccessCount() {
|
||||
dComIfGs_setTmpReg(0xFEFF, dComIfGs_getTmpReg(0xFEFF) + 1);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80031838-80031870 02C178 0038+00 0/0 0/0 4/4 .text daNpcKakashi_clrSuccessCount__Fv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daNpcKakashi_clrSuccessCount() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daNpcKakashi_clrSuccessCount__Fv.s"
|
||||
void daNpcKakashi_clrSuccessCount() {
|
||||
dComIfGs_setTmpReg(0xFEFF, 0);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 803790B0-803790B0 005710 0000+00 0/0 0/0 0/0 .rodata @stringBase0 */
|
||||
@@ -480,19 +460,14 @@ u8 daYkgr_c::m_path[4];
|
||||
/* 80450D98-80450D9C 000298 0004+00 0/0 1/1 2/2 .sbss m_emitter__8daYkgr_c */
|
||||
u8 daYkgr_c::m_emitter[4];
|
||||
|
||||
/* 80450D9C-80450DA4 00029C 0008+00 1/1 0/0 0/0 .sbss arcName$4309 */
|
||||
static u8 arcName[8];
|
||||
|
||||
/* 80031870-800318B4 02C1B0 0044+00 0/0 0/0 19/19 .text getArcName__12daSetBgObj_cFP10fopAc_ac_c
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daSetBgObj_c::getArcName(fopAc_ac_c* param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/getArcName__12daSetBgObj_cFP10fopAc_ac_c.s"
|
||||
const char* daSetBgObj_c::getArcName(fopAc_ac_c* param_0) {
|
||||
static char arcName[8];
|
||||
|
||||
sprintf(arcName, "@bg%04x", (u16)fopAcM_GetParam(param_0));
|
||||
return arcName;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80451D28-80451D30 -00001 0008+00 0/0 0/0 3/3 .sdata2 M_dir_base__Q212daObjMovebox5Act_c
|
||||
@@ -503,7 +478,7 @@ SECTION_SDATA2 void* daObjMovebox::Act_c::M_dir_base[2] = {
|
||||
};
|
||||
|
||||
/* 80451D30-80451D34 000330 0004+00 0/0 0/0 3/3 .sdata2 OPEN_SIZE__7daDsh_c */
|
||||
SECTION_SDATA2 u32 daDsh_c::OPEN_SIZE = 0x43870CCD;
|
||||
SECTION_SDATA2 f32 daDsh_c::OPEN_SIZE = 270.1f;
|
||||
|
||||
/* 80451D34-80451D38 000334 0004+00 0/0 0/0 1/1 .sdata2 OPEN_ACCEL__7daDsh_c */
|
||||
SECTION_SDATA2 f32 daDsh_c::OPEN_ACCEL = 10.0f;
|
||||
@@ -515,7 +490,7 @@ SECTION_SDATA2 f32 daDsh_c::OPEN_SPEED = -40.0f;
|
||||
SECTION_SDATA2 f32 daDsh_c::OPEN_BOUND_SPEED = -30.0f;
|
||||
|
||||
/* 80451D40-80451D44 000340 0004+00 0/0 0/0 1/1 .sdata2 OPEN_BOUND_RATIO__7daDsh_c */
|
||||
SECTION_SDATA2 f32 daDsh_c::OPEN_BOUND_RATIO = -2.0f / 5.0f;
|
||||
SECTION_SDATA2 f32 daDsh_c::OPEN_BOUND_RATIO = -0.4f;
|
||||
|
||||
/* 80451D44-80451D48 000344 0004+00 0/0 0/0 1/1 .sdata2 CLOSE_ACCEL__7daDsh_c */
|
||||
SECTION_SDATA2 f32 daDsh_c::CLOSE_ACCEL = 10.0f;
|
||||
@@ -527,7 +502,7 @@ SECTION_SDATA2 f32 daDsh_c::CLOSE_SPEED = 40.0f;
|
||||
SECTION_SDATA2 f32 daDsh_c::CLOSE_BOUND_SPEED = 30.0f;
|
||||
|
||||
/* 80451D50-80451D54 000350 0004+00 0/0 0/0 1/1 .sdata2 CLOSE_BOUND_RATIO__7daDsh_c */
|
||||
SECTION_SDATA2 f32 daDsh_c::CLOSE_BOUND_RATIO = -2.0f / 5.0f;
|
||||
SECTION_SDATA2 f32 daDsh_c::CLOSE_BOUND_RATIO = -0.4f;
|
||||
|
||||
/* 80451D54-80451D58 000354 0004+00 1/1 0/0 0/0 .sdata2 @4338 */
|
||||
SECTION_SDATA2 static u8 lit_4338[4] = {
|
||||
@@ -617,47 +592,33 @@ asm void daGrass_c::deleteRoomFlower(int param_0) {
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80450DB8-80450DBC 0002B8 0004+00 4/4 0/0 2/2 .sbss m_myObj__6daMP_c */
|
||||
u8 daMP_c::m_myObj[4];
|
||||
daMP_c* daMP_c::m_myObj;
|
||||
|
||||
/* 80031A78-80031AA4 02C3B8 002C+00 0/0 0/0 1/1 .text daMP_c_Get_MovieRestFrame__6daMP_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daMP_c::daMP_c_Get_MovieRestFrame() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daMP_c_Get_MovieRestFrame__6daMP_cFv.s"
|
||||
int daMP_c::daMP_c_Get_MovieRestFrame() {
|
||||
return m_myObj->mpGetMovieRestFrame();
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80031AA4-80031AD0 02C3E4 002C+00 0/0 0/0 1/1 .text daMP_c_Set_PercentMovieVolume__6daMP_cFf */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daMP_c::daMP_c_Set_PercentMovieVolume(f32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daMP_c_Set_PercentMovieVolume__6daMP_cFf.s"
|
||||
void daMP_c::daMP_c_Set_PercentMovieVolume(f32 i_volume) {
|
||||
m_myObj->mpSetPercentMovieVol(i_volume);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80031AD0-80031B24 02C410 0054+00 0/0 1/1 1/1 .text daMP_c_THPPlayerPlay__6daMP_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daMP_c::daMP_c_THPPlayerPlay() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daMP_c_THPPlayerPlay__6daMP_cFv.s"
|
||||
int daMP_c::daMP_c_THPPlayerPlay() {
|
||||
if (m_myObj == NULL) {
|
||||
dDemo_c::onStatus(1);
|
||||
return 0;
|
||||
} else {
|
||||
dDemo_c::offStatus(1);
|
||||
return m_myObj->mpTHPPlay();
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80031B24-80031B50 02C464 002C+00 0/0 0/0 1/1 .text daMP_c_THPPlayerPause__6daMP_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daMP_c::daMP_c_THPPlayerPause() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/daMP_c_THPPlayerPause__6daMP_cFv.s"
|
||||
void daMP_c::daMP_c_THPPlayerPause() {
|
||||
m_myObj->mpTHPPause();
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80450DBC-80450DC0 0002BC 0004+00 1/1 0/0 3/3 .sbss mTagMagne__12daTagMagne_c */
|
||||
@@ -671,8 +632,7 @@ int daTagMagne_c::checkMagnetCode(cBgS_PolyInfo& poly) {
|
||||
}
|
||||
|
||||
int magCode = dComIfG_Bgsp().GetMagnetCode(poly);
|
||||
if ((magCode == 1 && mTagMagne->checkMagneA()) ||
|
||||
(magCode == 2 && mTagMagne->checkMagneB()) ||
|
||||
if ((magCode == 1 && mTagMagne->checkMagneA()) || (magCode == 2 && mTagMagne->checkMagneB()) ||
|
||||
(magCode == 3 && mTagMagne->checkMagneC())) {
|
||||
return 1;
|
||||
}
|
||||
@@ -710,21 +670,15 @@ int daTagMagne_c::checkMagneC() {
|
||||
/* ############################################################################################## */
|
||||
/* 80450DC0-80450DC4 -00001 0004+00 4/4 0/0 2/2 .sbss None */
|
||||
/* 80450DC0 0001+00 data_80450DC0 None */
|
||||
extern u8 struct_80450DC0;
|
||||
u8 struct_80450DC0;
|
||||
u8 daTagMist_c::mPlayerNo;
|
||||
|
||||
/* 80450DC1 0003+00 data_80450DC1 None */
|
||||
bool daObjCarry_c::mSaveFlag;
|
||||
|
||||
/* 80031CF0-80031CF8 02C630 0008+00 0/0 1/1 0/0 .text getPlayerNo__11daTagMist_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void daTagMist_c::getPlayerNo() {
|
||||
nofralloc
|
||||
#include "asm/d/com/d_com_static/getPlayerNo__11daTagMist_cFv.s"
|
||||
u8 daTagMist_c::getPlayerNo() {
|
||||
return mPlayerNo;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80031CF8-80031D04 02C638 000C+00 0/0 1/1 0/0 .text clrSaveFlag__12daObjCarry_cFv */
|
||||
void daObjCarry_c::clrSaveFlag() {
|
||||
|
||||
+1330
-391
File diff suppressed because it is too large
Load Diff
+329
-346
@@ -5,10 +5,10 @@
|
||||
|
||||
#include "d/d_demo.h"
|
||||
#include "d/com/d_com_inf_game.h"
|
||||
#include "d/msg/d_msg_object.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
#include "rel/d/a/d_a_movie_player/d_a_movie_player.h"
|
||||
#include "d/msg/d_msg_object.h"
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
@@ -506,37 +506,21 @@ SECTION_DATA extern void* data_803A7BF4[9] = {
|
||||
namespace {
|
||||
/* 80037DE4-80037E44 032724 0060+00 1/0 0/0 0/0 .text
|
||||
* __dt__Q220@unnamed@d_demo_cpp@24jstudio_tAdaptor_messageFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm jstudio_tAdaptor_message::~jstudio_tAdaptor_message() {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/func_80037DE4.s"
|
||||
}
|
||||
#pragma pop
|
||||
jstudio_tAdaptor_message::~jstudio_tAdaptor_message() {}
|
||||
|
||||
/* 80037E44-80037E74 032784 0030+00 1/0 0/0 0/0 .text
|
||||
* adaptor_do_MESSAGE__Q220@unnamed@d_demo_cpp@24jstudio_tAdaptor_messageFQ37JStudio4data15TEOperationDataPCvUl
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void jstudio_tAdaptor_message::adaptor_do_MESSAGE(JStudio::data::TEOperationData param_0, const void* param_1, u32 param_2) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/func_80037E44.s"
|
||||
void jstudio_tAdaptor_message::adaptor_do_MESSAGE(JStudio::data::TEOperationData param_0,
|
||||
const void* pContent, u32 uSize) {
|
||||
if (param_0 == JStudio::data::UNK_0x19) {
|
||||
dMsgObject_setDemoMessage(*(u32*)pContent);
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80037E74-80037ED4 0327B4 0060+00 1/0 0/0 0/0 .text
|
||||
* __dt__Q220@unnamed@d_demo_cpp@29jstudio_tCreateObject_messageFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm jstudio_tCreateObject_message::~jstudio_tCreateObject_message() {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/func_80037E74.s"
|
||||
}
|
||||
#pragma pop
|
||||
jstudio_tCreateObject_message::~jstudio_tCreateObject_message() {}
|
||||
|
||||
/* 80037ED4-80038020 032814 014C+00 1/0 0/0 0/0 .text
|
||||
* create__Q220@unnamed@d_demo_cpp@29jstudio_tCreateObject_messageFPPQ27JStudio7TObjectRCQ47JStudio3stb4data20TParse_TBlock_object
|
||||
@@ -544,7 +528,9 @@ asm jstudio_tCreateObject_message::~jstudio_tCreateObject_message() {
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void jstudio_tCreateObject_message::create(JStudio::TObject** param_0, const JStudio::stb::data::TParse_TBlock_object& param_1) {
|
||||
asm void
|
||||
jstudio_tCreateObject_message::create(JStudio::TObject** param_0,
|
||||
const JStudio::stb::data::TParse_TBlock_object& param_1) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/func_80037ED4.s"
|
||||
}
|
||||
@@ -611,6 +597,18 @@ SECTION_SDATA2 static u8 lit_4040[4] = {
|
||||
SECTION_SDATA2 static f32 lit_4041 = 1.0f;
|
||||
|
||||
/* 80038020-80038098 032960 0078+00 1/1 0/0 0/0 .text __ct__13dDemo_actor_cFv */
|
||||
// matches with literals
|
||||
#ifdef NONMATCHING
|
||||
dDemo_actor_c::dDemo_actor_c() {
|
||||
mFlags = 0;
|
||||
mTrans.set(0.0f, 0.0f, 0.0f);
|
||||
mScale.set(1.0f, 1.0f, 1.0f);
|
||||
mRotate.set(0, 0, 0);
|
||||
mModel = NULL;
|
||||
mAnmFrameMax = __float_max[0];
|
||||
mTexAnmFrameMax = __float_max[0];
|
||||
}
|
||||
#else
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
@@ -619,8 +617,24 @@ asm dDemo_actor_c::dDemo_actor_c() {
|
||||
#include "asm/d/d_demo/__ct__13dDemo_actor_cFv.s"
|
||||
}
|
||||
#pragma pop
|
||||
#endif
|
||||
|
||||
/* 80038098-80038128 0329D8 0090+00 1/0 0/0 0/0 .text __dt__13dDemo_actor_cFv */
|
||||
// matches with vtable data
|
||||
#ifdef NONMATCHING
|
||||
dDemo_actor_c::~dDemo_actor_c() {
|
||||
fopAc_ac_c* actor = getActor();
|
||||
if (actor != NULL) {
|
||||
actor->mDemoActorId = 0;
|
||||
}
|
||||
|
||||
mActorId = -1;
|
||||
mOldAnmId = -1;
|
||||
mBtpId = -1;
|
||||
mBtkId = -1;
|
||||
mBrkId = -1;
|
||||
}
|
||||
#else
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
@@ -630,26 +644,26 @@ extern "C" asm void __dt__13dDemo_actor_cFv() {
|
||||
#include "asm/d/d_demo/__dt__13dDemo_actor_cFv.s"
|
||||
}
|
||||
#pragma pop
|
||||
#endif
|
||||
|
||||
/* 80038128-8003815C 032A68 0034+00 1/1 0/0 0/0 .text getActor__13dDemo_actor_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::getActor() {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/getActor__13dDemo_actor_cFv.s"
|
||||
fopAc_ac_c* dDemo_actor_c::getActor() {
|
||||
return fopAcM_SearchByID(mActorId);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 8003815C-8003819C 032A9C 0040+00 1/1 1/1 0/0 .text setActor__13dDemo_actor_cFP10fopAc_ac_c */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::setActor(fopAc_ac_c* param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/setActor__13dDemo_actor_cFP10fopAc_ac_c.s"
|
||||
void dDemo_actor_c::setActor(fopAc_ac_c* pActor) {
|
||||
if (pActor == NULL) {
|
||||
mActorId = -1;
|
||||
} else {
|
||||
mActorId = fopAcM_GetID(pActor);
|
||||
}
|
||||
|
||||
mOldAnmId = -1;
|
||||
mBtpId = -1;
|
||||
mBtkId = -1;
|
||||
mBrkId = -1;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80451DB8-80451DC0 0003B8 0008+00 4/4 0/0 0/0 .sdata2 @4127 */
|
||||
@@ -659,7 +673,7 @@ SECTION_SDATA2 static f64 lit_4127 = 4503601774854144.0 /* cast s32 to float */;
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::getPrm_Morf() {
|
||||
asm f32 dDemo_actor_c::getPrm_Morf() {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/getPrm_Morf__13dDemo_actor_cFv.s"
|
||||
}
|
||||
@@ -729,7 +743,7 @@ const u8* dDemo_c::m_branchData;
|
||||
static u8 struct_80450E48[4];
|
||||
|
||||
/* 80450E4C-80450E50 00034C 0004+00 1/1 0/0 0/0 .sbss it$4206 */
|
||||
static u8 it[4];
|
||||
static int it;
|
||||
|
||||
/* 80038338-80038490 032C78 0158+00 0/0 1/1 5/5 .text getDemoIDData__13dDemo_actor_cFPiPiPiPUsPUc
|
||||
*/
|
||||
@@ -747,7 +761,7 @@ asm void dDemo_actor_c::getDemoIDData(int* param_0, int* param_1, int* param_2,
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
static asm void dDemo_getJaiPointer(char const* param_0, u32 param_1, int param_2, u16* param_3) {
|
||||
static asm void* dDemo_getJaiPointer(char const* param_0, u32 param_1, int param_2, u16* param_3) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/dDemo_getJaiPointer__FPCcUliPUs.s"
|
||||
}
|
||||
@@ -759,20 +773,93 @@ SECTION_SDATA2 static f32 lit_4152 = -1.0f;
|
||||
|
||||
/* 80038518-800387A8 032E58 0290+00 0/0 0/0 2/2 .text
|
||||
* dDemo_setDemoData__FP10fopAc_ac_cUcP14mDoExt_McaMorfPCciPUsUlSc */
|
||||
// reg alloc
|
||||
#ifdef NONMATCHING
|
||||
int dDemo_setDemoData(fopAc_ac_c* param_0, u8 param_1, mDoExt_McaMorf* param_2, char const* param_3,
|
||||
int param_4, u16* param_5, u32 param_6, s8 param_7) {
|
||||
dDemo_actor_c* demo_actor = dDemo_c::getActor(param_0->mDemoActorId);
|
||||
|
||||
if (demo_actor == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 flags = demo_actor->checkEnable(param_1);
|
||||
if (flags & 2) {
|
||||
param_0->current.pos = demo_actor->getTrans();
|
||||
param_0->next.pos = param_0->current.pos;
|
||||
}
|
||||
|
||||
if (flags & 8) {
|
||||
param_0->mCollisionRot = demo_actor->getRatate();
|
||||
}
|
||||
|
||||
if (flags & 4) {
|
||||
param_0->mScale = demo_actor->getScale();
|
||||
}
|
||||
|
||||
if (flags & 0x80) {
|
||||
param_0->mGravity = demo_actor->getPrm_Morf();
|
||||
}
|
||||
|
||||
if (param_2 == NULL) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
demo_actor->setModel(param_2->getModel());
|
||||
|
||||
if (flags & 0x20) {
|
||||
u32 anmID = demo_actor->getAnmId();
|
||||
|
||||
if (anmID != demo_actor->getOldAnmId()) {
|
||||
const char* a_name;
|
||||
if (anmID & 0x10000) {
|
||||
a_name = dStage_roomControl_c::getDemoArcName();
|
||||
} else {
|
||||
a_name = param_3;
|
||||
}
|
||||
|
||||
demo_actor->setOldAnmId(anmID);
|
||||
|
||||
J3DAnmTransform* i_key = (J3DAnmTransform*)dComIfG_getObjectIDRes(a_name, anmID);
|
||||
void* ptr = dDemo_getJaiPointer(a_name, anmID, param_4, param_5);
|
||||
|
||||
param_2->setAnm(i_key, -1, demo_actor->getPrm_Morf(), 1.0f, 0.0f, -1.0f, ptr);
|
||||
demo_actor->setAnmFrameMax(param_2->getEndFrame());
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & 0x40) {
|
||||
f32 anm_frame = demo_actor->getAnmFrame();
|
||||
|
||||
if (anm_frame > 1.0f) {
|
||||
param_2->setFrame(anm_frame - 1.0f);
|
||||
param_2->play(¶m_0->current.pos, param_6, param_7);
|
||||
} else {
|
||||
param_2->setFrame(anm_frame);
|
||||
}
|
||||
} else {
|
||||
param_2->play(¶m_0->current.pos, param_6, param_7);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
#else
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_setDemoData(fopAc_ac_c* param_0, u8 param_1, mDoExt_McaMorf* param_2,
|
||||
char const* param_3, int param_4, u16* param_5, u32 param_6,
|
||||
char const* a_name, int param_4, u16* param_5, u32 param_6,
|
||||
s8 param_7) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/dDemo_setDemoData__FP10fopAc_ac_cUcP14mDoExt_McaMorfPCciPUsUlSc.s"
|
||||
}
|
||||
#pragma pop
|
||||
#endif
|
||||
|
||||
/* 800387A8-800387EC 0330E8 0044+00 1/1 0/0 0/0 .text branchFile__FPCc */
|
||||
static void branchFile(char const* resName) {
|
||||
dDemo_c::setBranchData((u8*)dComIfG_getObjectRes(dStage_roomControl_c::getDemoArcName(), resName));
|
||||
dDemo_c::setBranchData(
|
||||
(u8*)dComIfG_getObjectRes(dStage_roomControl_c::getDemoArcName(), resName));
|
||||
}
|
||||
|
||||
/* ############################################################################################## */
|
||||
@@ -814,258 +901,205 @@ asm void dDemo_actor_c::JSGSetTranslation(Vec const& param_0) {
|
||||
#pragma pop
|
||||
|
||||
/* 80038980-800389A8 0332C0 0028+00 1/0 0/0 0/0 .text JSGSetScaling__13dDemo_actor_cFRC3Vec */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGSetScaling(Vec const& param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetScaling__13dDemo_actor_cFRC3Vec.s"
|
||||
void dDemo_actor_c::JSGSetScaling(Vec const& i_scale) {
|
||||
mScale = i_scale;
|
||||
onEnable(0x4);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80451DCC-80451DD0 0003CC 0004+00 1/1 0/0 0/0 .sdata2 @4567 */
|
||||
SECTION_SDATA2 static f32 lit_4567 = 182.04444885253906f;
|
||||
|
||||
/* 800389A8-80038A0C 0332E8 0064+00 1/0 0/0 0/0 .text JSGSetRotation__13dDemo_actor_cFRC3Vec */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGSetRotation(Vec const& param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetRotation__13dDemo_actor_cFRC3Vec.s"
|
||||
void dDemo_actor_c::JSGSetRotation(Vec const& i_rotate) {
|
||||
mRotate.x = i_rotate.x * 182.04444885253906f;
|
||||
mRotate.y = i_rotate.y * 182.04444885253906f;
|
||||
mRotate.z = i_rotate.z * 182.04444885253906f;
|
||||
onEnable(0x8);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038A0C-80038A20 03334C 0014+00 1/0 0/0 0/0 .text JSGSetShape__13dDemo_actor_cFUl */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGSetShape(u32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetShape__13dDemo_actor_cFUl.s"
|
||||
void dDemo_actor_c::JSGSetShape(u32 i_shape) {
|
||||
mShape = i_shape;
|
||||
onEnable(0x10);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038A20-80038A40 033360 0020+00 1/0 0/0 0/0 .text JSGSetAnimation__13dDemo_actor_cFUl
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGSetAnimation(u32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetAnimation__13dDemo_actor_cFUl.s"
|
||||
void dDemo_actor_c::JSGSetAnimation(u32 i_anmID) {
|
||||
mAnmId = i_anmID;
|
||||
mAnmFrameMax = __float_max[0];
|
||||
onEnable(0x20);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038A40-80038A54 033380 0014+00 1/0 0/0 0/0 .text JSGSetAnimationFrame__13dDemo_actor_cFf */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGSetAnimationFrame(f32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetAnimationFrame__13dDemo_actor_cFf.s"
|
||||
void dDemo_actor_c::JSGSetAnimationFrame(f32 i_frame) {
|
||||
mAnmFrame = i_frame;
|
||||
onEnable(0x40);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038A54-80038A68 033394 0014+00 1/0 0/0 0/0 .text JSGSetAnimationTransition__13dDemo_actor_cFf
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGSetAnimationTransition(f32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetAnimationTransition__13dDemo_actor_cFf.s"
|
||||
void dDemo_actor_c::JSGSetAnimationTransition(f32 i_trans) {
|
||||
mAnmTransition = i_trans;
|
||||
onEnable(0x80);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038A68-80038A7C 0333A8 0014+00 1/0 0/0 0/0 .text JSGSetTextureAnimation__13dDemo_actor_cFUl
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGSetTextureAnimation(u32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetTextureAnimation__13dDemo_actor_cFUl.s"
|
||||
void dDemo_actor_c::JSGSetTextureAnimation(u32 i_anm) {
|
||||
mTexAnm = i_anm;
|
||||
onEnable(0x100);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038A7C-80038A90 0333BC 0014+00 1/0 0/0 0/0 .text
|
||||
* JSGSetTextureAnimationFrame__13dDemo_actor_cFf */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGSetTextureAnimationFrame(f32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetTextureAnimationFrame__13dDemo_actor_cFf.s"
|
||||
void dDemo_actor_c::JSGSetTextureAnimationFrame(f32 i_frame) {
|
||||
mTexAnmFrame = i_frame;
|
||||
onEnable(0x200);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038A90-80038AC4 0333D0 0034+00 8/8 0/0 0/0 .text getView__Fv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
static asm void getView() {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/getView__Fv.s"
|
||||
static view_class* getView() {
|
||||
if (dComIfGp_getWindowNum() == 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int camID = dComIfGp_getWindow(0)->getCameraID();
|
||||
return dComIfGp_getCamera(camID);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038AC4-80038AF8 033404 0034+00 1/0 0/0 0/0 .text JSGGetProjectionNear__14dDemo_camera_cCFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm f32 dDemo_camera_c::JSGGetProjectionNear() const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetProjectionNear__14dDemo_camera_cCFv.s"
|
||||
f32 dDemo_camera_c::JSGGetProjectionNear() const {
|
||||
view_class* view = getView();
|
||||
|
||||
if (view == NULL) {
|
||||
return FLOAT_LABEL(lit_4040);
|
||||
}
|
||||
|
||||
return view->mNear;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038AF8-80038B0C 033438 0014+00 1/0 0/0 0/0 .text JSGSetProjectionNear__14dDemo_camera_cFf */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_camera_c::JSGSetProjectionNear(f32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetProjectionNear__14dDemo_camera_cFf.s"
|
||||
void dDemo_camera_c::JSGSetProjectionNear(f32 i_projNear) {
|
||||
mProjNear = i_projNear;
|
||||
onEnable(0x1);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038B0C-80038B40 03344C 0034+00 1/0 0/0 0/0 .text JSGGetProjectionFar__14dDemo_camera_cCFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm f32 dDemo_camera_c::JSGGetProjectionFar() const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetProjectionFar__14dDemo_camera_cCFv.s"
|
||||
f32 dDemo_camera_c::JSGGetProjectionFar() const {
|
||||
view_class* view = getView();
|
||||
|
||||
if (view == NULL) {
|
||||
return lit_4041;
|
||||
}
|
||||
|
||||
return view->mFar;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038B40-80038B54 033480 0014+00 1/0 0/0 0/0 .text JSGSetProjectionFar__14dDemo_camera_cFf */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_camera_c::JSGSetProjectionFar(f32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetProjectionFar__14dDemo_camera_cFf.s"
|
||||
void dDemo_camera_c::JSGSetProjectionFar(f32 i_projFar) {
|
||||
mProjFar = i_projFar;
|
||||
onEnable(0x2);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80451DD0-80451DD4 0003D0 0004+00 1/1 0/0 0/0 .sdata2 @4642 */
|
||||
SECTION_SDATA2 static f32 lit_4642 = 60.0f;
|
||||
|
||||
/* 80038B54-80038B88 033494 0034+00 1/0 0/0 0/0 .text JSGGetProjectionFovy__14dDemo_camera_cCFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm f32 dDemo_camera_c::JSGGetProjectionFovy() const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetProjectionFovy__14dDemo_camera_cCFv.s"
|
||||
f32 dDemo_camera_c::JSGGetProjectionFovy() const {
|
||||
view_class* view = getView();
|
||||
|
||||
if (view == NULL) {
|
||||
return 60.0f;
|
||||
}
|
||||
|
||||
return view->mFovy;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038B88-80038B9C 0334C8 0014+00 1/0 0/0 0/0 .text JSGSetProjectionFovy__14dDemo_camera_cFf */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_camera_c::JSGSetProjectionFovy(f32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetProjectionFovy__14dDemo_camera_cFf.s"
|
||||
void dDemo_camera_c::JSGSetProjectionFovy(f32 i_projFovy) {
|
||||
mProjFovy = i_projFovy;
|
||||
onEnable(0x4);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80451DD4-80451DD8 0003D4 0004+00 1/1 0/0 0/0 .sdata2 @4655 */
|
||||
SECTION_SDATA2 static f32 lit_4655 = 19.0f / 14.0f;
|
||||
|
||||
/* 80038B9C-80038BD0 0334DC 0034+00 1/0 0/0 0/0 .text JSGGetProjectionAspect__14dDemo_camera_cCFv
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm f32 dDemo_camera_c::JSGGetProjectionAspect() const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetProjectionAspect__14dDemo_camera_cCFv.s"
|
||||
f32 dDemo_camera_c::JSGGetProjectionAspect() const {
|
||||
view_class* view = getView();
|
||||
|
||||
if (view == NULL) {
|
||||
return 1.3571428f;
|
||||
}
|
||||
|
||||
return view->mAspect;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038BD0-80038BE4 033510 0014+00 1/0 0/0 0/0 .text JSGSetProjectionAspect__14dDemo_camera_cFf
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_camera_c::JSGSetProjectionAspect(f32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetProjectionAspect__14dDemo_camera_cFf.s"
|
||||
void dDemo_camera_c::JSGSetProjectionAspect(f32 i_aspect) {
|
||||
mProjAspect = i_aspect;
|
||||
onEnable(0x8);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038BE4-80038C44 033524 0060+00 1/0 0/0 0/0 .text JSGGetViewPosition__14dDemo_camera_cCFP3Vec
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_camera_c::JSGGetViewPosition(Vec* param_0) const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetViewPosition__14dDemo_camera_cCFP3Vec.s"
|
||||
void dDemo_camera_c::JSGGetViewPosition(Vec* o_position) const {
|
||||
view_class* view = getView();
|
||||
|
||||
if (view == NULL) {
|
||||
f32 tmp_0 = FLOAT_LABEL(lit_4040);
|
||||
o_position->x = tmp_0;
|
||||
o_position->y = tmp_0;
|
||||
o_position->z = tmp_0;
|
||||
} else {
|
||||
*o_position = view->mLookat.mEye;
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038C44-80038C6C 033584 0028+00 1/0 0/0 0/0 .text JSGSetViewPosition__14dDemo_camera_cFRC3Vec
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_camera_c::JSGSetViewPosition(Vec const& param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetViewPosition__14dDemo_camera_cFRC3Vec.s"
|
||||
void dDemo_camera_c::JSGSetViewPosition(Vec const& i_position) {
|
||||
mViewPos = i_position;
|
||||
onEnable(0x10);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038C6C-80038CD0 0335AC 0064+00 1/0 0/0 0/0 .text JSGGetViewUpVector__14dDemo_camera_cCFP3Vec
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_camera_c::JSGGetViewUpVector(Vec* param_0) const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetViewUpVector__14dDemo_camera_cCFP3Vec.s"
|
||||
void dDemo_camera_c::JSGGetViewUpVector(Vec* o_upVec) const {
|
||||
view_class* view = getView();
|
||||
|
||||
if (view == NULL) {
|
||||
f32 tmp_0 = FLOAT_LABEL(lit_4040);
|
||||
o_upVec->x = tmp_0;
|
||||
o_upVec->y = lit_4041;
|
||||
o_upVec->z = tmp_0;
|
||||
} else {
|
||||
*o_upVec = view->mLookat.mUp;
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038CD0-80038CF8 033610 0028+00 1/0 0/0 0/0 .text JSGSetViewUpVector__14dDemo_camera_cFRC3Vec
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_camera_c::JSGSetViewUpVector(Vec const& param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetViewUpVector__14dDemo_camera_cFRC3Vec.s"
|
||||
void dDemo_camera_c::JSGSetViewUpVector(Vec const& i_upVec) {
|
||||
mViewUpVector = i_upVec;
|
||||
onEnable(0x20);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038CF8-80038D5C 033638 0064+00 1/0 0/0 0/0 .text
|
||||
* JSGGetViewTargetPosition__14dDemo_camera_cCFP3Vec */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_camera_c::JSGGetViewTargetPosition(Vec* param_0) const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetViewTargetPosition__14dDemo_camera_cCFP3Vec.s"
|
||||
void dDemo_camera_c::JSGGetViewTargetPosition(Vec* o_targetPos) const {
|
||||
view_class* view = getView();
|
||||
|
||||
if (view == NULL) {
|
||||
f32 tmp_0 = FLOAT_LABEL(lit_4040);
|
||||
o_targetPos->x = tmp_0;
|
||||
o_targetPos->y = tmp_0;
|
||||
o_targetPos->z = lit_4041;
|
||||
} else {
|
||||
*o_targetPos = view->mLookat.mCenter;
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038D5C-80038D84 03369C 0028+00 1/0 0/0 0/0 .text
|
||||
* JSGSetViewTargetPosition__14dDemo_camera_cFRC3Vec */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_camera_c::JSGSetViewTargetPosition(Vec const& param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetViewTargetPosition__14dDemo_camera_cFRC3Vec.s"
|
||||
void dDemo_camera_c::JSGSetViewTargetPosition(Vec const& i_targetPos) {
|
||||
mViewTargetVector = i_targetPos;
|
||||
onEnable(0x40);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80451DD8-80451DE0 0003D8 0004+04 2/2 0/0 0/0 .sdata2 @4710 */
|
||||
@@ -1077,6 +1111,18 @@ SECTION_SDATA2 static f32 lit_4710[1 + 1 /* padding */] = {
|
||||
|
||||
/* 80038D84-80038DDC 0336C4 0058+00 1/0 0/0 0/0 .text JSGGetViewRoll__14dDemo_camera_cCFv
|
||||
*/
|
||||
// matches with literals
|
||||
#ifdef NONMATCHING
|
||||
f32 dDemo_camera_c::JSGGetViewRoll() const {
|
||||
view_class* view = getView();
|
||||
|
||||
if (view == NULL) {
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
return view->mBank * 0.0054931640625f;
|
||||
}
|
||||
#else
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
@@ -1085,131 +1131,87 @@ asm f32 dDemo_camera_c::JSGGetViewRoll() const {
|
||||
#include "asm/d/d_demo/JSGGetViewRoll__14dDemo_camera_cCFv.s"
|
||||
}
|
||||
#pragma pop
|
||||
#endif
|
||||
|
||||
/* 80038DDC-80038DF0 03371C 0014+00 1/0 0/0 0/0 .text JSGSetViewRoll__14dDemo_camera_cFf
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_camera_c::JSGSetViewRoll(f32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetViewRoll__14dDemo_camera_cFf.s"
|
||||
void dDemo_camera_c::JSGSetViewRoll(f32 i_roll) {
|
||||
mViewRoll = i_roll;
|
||||
onEnable(0x80);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038DF0-80038E20 033730 0030+00 1/0 0/0 0/0 .text JSGSetColor__15dDemo_ambient_cF8_GXColor */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_ambient_c::JSGSetColor(_GXColor param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetColor__15dDemo_ambient_cF8_GXColor.s"
|
||||
void dDemo_ambient_c::JSGSetColor(GXColor i_color) {
|
||||
mColor = i_color;
|
||||
onEnable(0x1);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038E20-80038E34 033760 0014+00 1/0 0/0 0/0 .text
|
||||
* JSGSetLightType__13dDemo_light_cFQ26JStage7TELight */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_light_c::JSGSetLightType(JStage::TELight param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetLightType__13dDemo_light_cFQ26JStage7TELight.s"
|
||||
void dDemo_light_c::JSGSetLightType(JStage::TELight i_lightType) {
|
||||
mLightType = i_lightType;
|
||||
onEnable(0x1);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038E34-80038E5C 033774 0028+00 1/0 0/0 0/0 .text JSGSetPosition__13dDemo_light_cFRC3Vec */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_light_c::JSGSetPosition(Vec const& param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetPosition__13dDemo_light_cFRC3Vec.s"
|
||||
void dDemo_light_c::JSGSetPosition(Vec const& i_pos) {
|
||||
mPosition = i_pos;
|
||||
onEnable(0x2);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038E5C-80038E8C 03379C 0030+00 1/0 0/0 0/0 .text JSGSetColor__13dDemo_light_cF8_GXColor */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_light_c::JSGSetColor(_GXColor param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetColor__13dDemo_light_cF8_GXColor.s"
|
||||
void dDemo_light_c::JSGSetColor(GXColor i_color) {
|
||||
mColor = i_color;
|
||||
onEnable(0x4);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038E8C-80038EA8 0337CC 001C+00 1/0 0/0 0/0 .text
|
||||
* JSGSetDistanceAttenuation__13dDemo_light_cFff13_GXDistAttnFn */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_light_c::JSGSetDistanceAttenuation(f32 param_0, f32 param_1, _GXDistAttnFn param_2) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetDistanceAttenuation__13dDemo_light_cFff13_GXDistAttnFn.s"
|
||||
void dDemo_light_c::JSGSetDistanceAttenuation(f32 param_0, f32 param_1, GXDistAttnFn i_distAttenFn) {
|
||||
field_0x24 = param_0;
|
||||
field_0x28 = param_1;
|
||||
mDistAttenFn = i_distAttenFn;
|
||||
onEnable(0x8);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038EA8-80038EC0 0337E8 0018+00 1/0 0/0 0/0 .text
|
||||
* JSGSetAngleAttenuation__13dDemo_light_cFf9_GXSpotFn */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_light_c::JSGSetAngleAttenuation(f32 param_0, _GXSpotFn param_1) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetAngleAttenuation__13dDemo_light_cFf9_GXSpotFn.s"
|
||||
void dDemo_light_c::JSGSetAngleAttenuation(f32 param_0, GXSpotFn i_spotFn) {
|
||||
field_0x2c = param_0;
|
||||
mSpotFn = i_spotFn;
|
||||
onEnable(0x10);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038EC0-80038EE8 033800 0028+00 1/0 0/0 0/0 .text JSGSetDirection__13dDemo_light_cFRC3Vec */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_light_c::JSGSetDirection(Vec const& param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetDirection__13dDemo_light_cFRC3Vec.s"
|
||||
void dDemo_light_c::JSGSetDirection(Vec const& i_direction) {
|
||||
mDirection = i_direction;
|
||||
onEnable(0x20);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038EE8-80038EFC 033828 0014+00 1/0 0/0 0/0 .text
|
||||
* JSGSetFogFunction__11dDemo_fog_cF10_GXFogType */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_fog_c::JSGSetFogFunction(_GXFogType param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetFogFunction__11dDemo_fog_cF10_GXFogType.s"
|
||||
void dDemo_fog_c::JSGSetFogFunction(GXFogType i_fogType) {
|
||||
mFogType = i_fogType;
|
||||
onEnable(0x1);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038EFC-80038F10 03383C 0014+00 1/0 0/0 0/0 .text JSGSetStartZ__11dDemo_fog_cFf */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_fog_c::JSGSetStartZ(f32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetStartZ__11dDemo_fog_cFf.s"
|
||||
void dDemo_fog_c::JSGSetStartZ(f32 i_startZ) {
|
||||
mStartZ = i_startZ;
|
||||
onEnable(0x2);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038F10-80038F24 033850 0014+00 1/0 0/0 0/0 .text JSGSetEndZ__11dDemo_fog_cFf */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_fog_c::JSGSetEndZ(f32 param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetEndZ__11dDemo_fog_cFf.s"
|
||||
void dDemo_fog_c::JSGSetEndZ(f32 i_endZ) {
|
||||
mEndZ = i_endZ;
|
||||
onEnable(0x4);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038F24-80038F54 033864 0030+00 1/0 0/0 0/0 .text JSGSetColor__11dDemo_fog_cF8_GXColor */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_fog_c::JSGSetColor(_GXColor param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGSetColor__11dDemo_fog_cF8_GXColor.s"
|
||||
void dDemo_fog_c::JSGSetColor(GXColor i_color) {
|
||||
mColor = i_color;
|
||||
onEnable(0x8);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80038F54-80038F70 033894 001C+00 1/1 0/0 0/0 .text __ct__14dDemo_object_cFv */
|
||||
dDemo_object_c::dDemo_object_c() {
|
||||
@@ -1386,7 +1388,7 @@ extern "C" asm void __dt__15dDemo_ambient_cFv() {
|
||||
/* 80039528-80039678 033E68 0150+00 1/0 0/0 0/0 .text
|
||||
* JSGFindObject__14dDemo_system_cCFPPQ26JStage7TObjectPCcQ26JStage8TEObject */
|
||||
bool dDemo_system_c::JSGFindObject(JStage::TObject** p_TObj, char const* actorName,
|
||||
JStage::TEObject objType) const {
|
||||
JStage::TEObject objType) const {
|
||||
if (mpObject == NULL) {
|
||||
return true;
|
||||
}
|
||||
@@ -1396,7 +1398,8 @@ bool dDemo_system_c::JSGFindObject(JStage::TObject** p_TObj, char const* actorNa
|
||||
|
||||
if (actor == NULL) {
|
||||
if (objType == JStage::TOBJ_ACTOR && !strncmp(actorName, "d_act", 5)) {
|
||||
actor = (fopAc_ac_c*)fopAcM_fastCreate(actorName, 0, NULL, -1, NULL, NULL, NULL, NULL);
|
||||
actor =
|
||||
(fopAc_ac_c*)fopAcM_fastCreate(actorName, 0, NULL, -1, NULL, NULL, NULL, NULL);
|
||||
if (actor == NULL) {
|
||||
return true;
|
||||
}
|
||||
@@ -1506,7 +1509,7 @@ int dDemo_c::start(u8 const* p_data, cXyz* p_translation, f32 rotationY) {
|
||||
if (m_data == NULL) {
|
||||
m_control->setSuspend(0);
|
||||
}
|
||||
|
||||
|
||||
m_control->forward(0);
|
||||
m_translation = p_translation;
|
||||
|
||||
@@ -1617,6 +1620,14 @@ void dDemo_c::reset() {
|
||||
}
|
||||
|
||||
/* 80039F1C-80039F9C 03485C 0080+00 1/0 0/0 0/0 .text emitter_create__16dDemo_particle_cFUl */
|
||||
// matches with literals
|
||||
#ifdef NONMATCHING
|
||||
void dDemo_particle_c::emitter_create(u32 param_0) {
|
||||
cXyz tmp(0.0f, 0.0f, 0.0f);
|
||||
int stayNo = dComIfGp_roomControl_getStayNo();
|
||||
dComIfGp_particle_set(param_0, &tmp, NULL, NULL, 0xFF, NULL, stayNo, NULL, NULL, NULL);
|
||||
}
|
||||
#else
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
@@ -1625,6 +1636,7 @@ asm void dDemo_particle_c::emitter_create(u32 param_0) {
|
||||
#include "asm/d/d_demo/emitter_create__16dDemo_particle_cFUl.s"
|
||||
}
|
||||
#pragma pop
|
||||
#endif
|
||||
|
||||
/* 80039F9C-80039FFC 0348DC 0060+00 1/0 0/0 0/0 .text __dt__16dDemo_particle_cFv */
|
||||
#pragma push
|
||||
@@ -1650,67 +1662,38 @@ extern "C" asm void __dt__14dDemo_camera_cFv() {
|
||||
|
||||
/* 8003A05C-8003A088 03499C 002C+00 1/0 0/0 0/0 .text JSGFindNodeID__13dDemo_actor_cCFPCc
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGFindNodeID(char const* param_0) const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGFindNodeID__13dDemo_actor_cCFPCc.s"
|
||||
s32 dDemo_actor_c::JSGFindNodeID(char const* param_0) const {
|
||||
return mModel->getModelData()->getJointName()->getIndex(param_0);
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 8003A088-8003A0C8 0349C8 0040+00 1/0 0/0 0/0 .text
|
||||
* JSGGetNodeTransformation__13dDemo_actor_cCFUlPA4_f */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGGetNodeTransformation(u32 param_0, f32 (*param_1)[4]) const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetNodeTransformation__13dDemo_actor_cCFUlPA4_f.s"
|
||||
int dDemo_actor_c::JSGGetNodeTransformation(u32 param_0, Mtx param_1) const {
|
||||
PSMTXCopy(mModel->i_getAnmMtx((u16)param_0), param_1);
|
||||
return 1;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 8003A0C8-8003A0D0 034A08 0008+00 1/0 0/0 0/0 .text JSGGetAnimationFrameMax__13dDemo_actor_cCFv
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm f32 dDemo_actor_c::JSGGetAnimationFrameMax() const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetAnimationFrameMax__13dDemo_actor_cCFv.s"
|
||||
f32 dDemo_actor_c::JSGGetAnimationFrameMax() const {
|
||||
return mAnmFrameMax;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 8003A0D0-8003A0D8 034A10 0008+00 1/0 0/0 0/0 .text
|
||||
* JSGGetTextureAnimationFrameMax__13dDemo_actor_cCFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm f32 dDemo_actor_c::JSGGetTextureAnimationFrameMax() const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetTextureAnimationFrameMax__13dDemo_actor_cCFv.s"
|
||||
f32 dDemo_actor_c::JSGGetTextureAnimationFrameMax() const {
|
||||
return mTexAnmFrameMax;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 8003A0D8-8003A0F4 034A18 001C+00 1/0 0/0 0/0 .text JSGGetTranslation__13dDemo_actor_cCFP3Vec */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGGetTranslation(Vec* param_0) const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetTranslation__13dDemo_actor_cCFP3Vec.s"
|
||||
void dDemo_actor_c::JSGGetTranslation(Vec* o_trans) const {
|
||||
*o_trans = mTrans;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 8003A0F4-8003A110 034A34 001C+00 1/0 0/0 0/0 .text JSGGetScaling__13dDemo_actor_cCFP3Vec */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dDemo_actor_c::JSGGetScaling(Vec* param_0) const {
|
||||
nofralloc
|
||||
#include "asm/d/d_demo/JSGGetScaling__13dDemo_actor_cCFP3Vec.s"
|
||||
void dDemo_actor_c::JSGGetScaling(Vec* o_scale) const {
|
||||
*o_scale = mScale;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 8003A110-8003A188 034A50 0078+00 1/0 0/0 0/0 .text JSGGetRotation__13dDemo_actor_cCFP3Vec */
|
||||
#pragma push
|
||||
|
||||
+23
-31
@@ -357,49 +357,41 @@ asm u32 dLib_getExpandSizeFromAramArchive(JKRAramArchive* param_0, char const* p
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80450DD8-80450DDC 0002D8 0004+00 2/2 0/0 0/0 .sbss m_diffTime__11dLib_time_c */
|
||||
u8 dLib_time_c::m_diffTime[4];
|
||||
|
||||
/* 80450DDC-80450DE0 0002DC 0004+00 2/2 0/0 0/0 .sbss None */
|
||||
static u8 data_80450DDC[4];
|
||||
OSTime dLib_time_c::m_diffTime;
|
||||
|
||||
/* 80450DE0-80450DE4 0002E0 0004+00 3/3 0/0 0/0 .sbss m_stopTime__11dLib_time_c */
|
||||
u8 dLib_time_c::m_stopTime[4];
|
||||
|
||||
/* 80450DE4-80450DE8 0002E4 0004+00 3/3 0/0 0/0 .sbss None */
|
||||
static u8 data_80450DE4[4];
|
||||
OSTime dLib_time_c::m_stopTime;
|
||||
|
||||
/* 80450DE8-80450DF0 0002E8 0008+00 3/3 0/0 0/0 .sbss None */
|
||||
static u8 data_80450DE8[8];
|
||||
bool dLib_time_c::m_timeStopped;
|
||||
|
||||
/* 80032804-80032880 02D144 007C+00 0/0 8/8 0/0 .text getTime__11dLib_time_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dLib_time_c::getTime() {
|
||||
nofralloc
|
||||
#include "asm/d/d_lib/getTime__11dLib_time_cFv.s"
|
||||
OSTime dLib_time_c::getTime() {
|
||||
if (!m_timeStopped) {
|
||||
return OSGetTime() - m_diffTime;
|
||||
}
|
||||
|
||||
OSTime time = OSGetTime();
|
||||
m_diffTime += (time - m_stopTime);
|
||||
m_stopTime = time;
|
||||
return time - m_diffTime;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80032880-800328BC 02D1C0 003C+00 0/0 1/1 0/0 .text stopTime__11dLib_time_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dLib_time_c::stopTime() {
|
||||
nofralloc
|
||||
#include "asm/d/d_lib/stopTime__11dLib_time_cFv.s"
|
||||
void dLib_time_c::stopTime() {
|
||||
if (!m_timeStopped) {
|
||||
m_stopTime = OSGetTime();
|
||||
m_timeStopped = true;
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 800328BC-80032918 02D1FC 005C+00 0/0 1/1 0/0 .text startTime__11dLib_time_cFv */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dLib_time_c::startTime() {
|
||||
nofralloc
|
||||
#include "asm/d/d_lib/startTime__11dLib_time_cFv.s"
|
||||
void dLib_time_c::startTime() {
|
||||
if (m_timeStopped) {
|
||||
m_diffTime += OSGetTime() - m_stopTime;
|
||||
m_timeStopped = false;
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80450DF0-80450DF8 -00001 0008+00 0/0 4/4 0/0 .sbss None */
|
||||
@@ -408,4 +400,4 @@ asm void dLib_time_c::startTime() {
|
||||
/* 80450DF2 0001+00 data_80450DF2 None */
|
||||
/* 80450DF3 0005+00 data_80450DF3 None */
|
||||
extern u8 struct_80450DF0[8];
|
||||
u8 struct_80450DF0[8];
|
||||
u8 struct_80450DF0[8] ALIGN_DECL(8);
|
||||
|
||||
@@ -50,7 +50,7 @@ extern "C" void setDefault__12dVibration_cFv();
|
||||
extern "C" void Init__12dVibration_cFv();
|
||||
extern "C" void Pause__12dVibration_cFv();
|
||||
extern "C" void Remove__12dVibration_cFv();
|
||||
extern "C" extern u8 data_80450F58[8];
|
||||
extern "C" extern u8 on_final_boss_stg[8];
|
||||
|
||||
//
|
||||
// External References:
|
||||
@@ -243,9 +243,4 @@ asm void dVibration_c::Remove() {
|
||||
nofralloc
|
||||
#include "asm/d/d_vibration/Remove__12dVibration_cFv.s"
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80450F58-80450F60 000458 0008+00 0/0 2/2 0/0 .sbss None */
|
||||
extern u8 data_80450F58[8];
|
||||
u8 data_80450F58[8];
|
||||
#pragma pop
|
||||
@@ -825,9 +825,9 @@ void dEvDtStaff_c::specialProcSound() {
|
||||
case 'RIDD':
|
||||
int* typeP = dComIfGp_evmng_getMyIntegerP(staffId, "Type");
|
||||
if (typeP != NULL && *typeP == 1) {
|
||||
mDoAud_seStart(0xC, NULL, 0, 0);
|
||||
mDoAud_seStart(Z2SE_READ_RIDDLE_A, NULL, 0, 0);
|
||||
} else {
|
||||
mDoAud_seStart(0xD, NULL, 0, 0);
|
||||
mDoAud_seStart(Z2SE_READ_RIDDLE_B, NULL, 0, 0);
|
||||
}
|
||||
break;
|
||||
case 'BGMS':
|
||||
@@ -1087,7 +1087,7 @@ void dEvDtStaff_c::specialProcDirector() {
|
||||
if (soundP != NULL) {
|
||||
switch (*soundP) {
|
||||
case 0:
|
||||
mDoAud_seStart(0, NULL, 0, 0);
|
||||
mDoAud_seStart(Z2SE_SY_DUMMY, NULL, 0, 0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user