mirror of
https://github.com/zeldaret/tp
synced 2026-09-07 19:20:58 -04:00
project cleanup (#2895)
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
This commit is contained in:
@@ -11,20 +11,17 @@
|
||||
#include "d/d_a_itembase_static.h"
|
||||
#include "d/d_procname.h"
|
||||
|
||||
/* 80D3EE18-80D3EE54 000078 003C+00 1/1 0/0 0/0 .text initBaseMtx__13daObjZCloth_cFv */
|
||||
void daObjZCloth_c::initBaseMtx() {
|
||||
mpModel->setBaseScale(scale);
|
||||
setBaseMtx();
|
||||
}
|
||||
|
||||
/* 80D3EE54-80D3EEC0 0000B4 006C+00 2/2 0/0 0/0 .text setBaseMtx__13daObjZCloth_cFv */
|
||||
void daObjZCloth_c::setBaseMtx() {
|
||||
mDoMtx_stack_c::transS(current.pos.x, current.pos.y, current.pos.z);
|
||||
mDoMtx_stack_c::ZXYrotM(shape_angle.x, shape_angle.y, shape_angle.z);
|
||||
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
|
||||
}
|
||||
|
||||
/* 80D3EEC0-80D3EF0C 000120 004C+00 1/1 0/0 0/0 .text Create__13daObjZCloth_cFv */
|
||||
int daObjZCloth_c::Create() {
|
||||
initBaseMtx();
|
||||
fopAcM_SetMtx(this, mpModel->getBaseTRMtx());
|
||||
@@ -32,7 +29,6 @@ int daObjZCloth_c::Create() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* 80D3EF0C-80D3F0AC 00016C 01A0+00 1/1 0/0 0/0 .text create__13daObjZCloth_cFv */
|
||||
int daObjZCloth_c::create() {
|
||||
fopAcM_ct(this, daObjZCloth_c);
|
||||
m_itemNo = 0x31;
|
||||
@@ -48,45 +44,37 @@ int daObjZCloth_c::create() {
|
||||
return phase;
|
||||
}
|
||||
|
||||
/* 80D3F1AC-80D3F1D0 00040C 0024+00 1/1 0/0 0/0 .text execute__13daObjZCloth_cFv */
|
||||
int daObjZCloth_c::execute() {
|
||||
setBaseMtx();
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* 80D3F1D0-80D3F200 000430 0030+00 1/1 0/0 0/0 .text draw__13daObjZCloth_cFv */
|
||||
int daObjZCloth_c::draw() {
|
||||
DrawBase();
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* 80D3F200-80D3F23C 000460 003C+00 1/1 0/0 0/0 .text _delete__13daObjZCloth_cFv */
|
||||
int daObjZCloth_c::_delete() {
|
||||
dComIfG_resDelete(&mPhase, dItem_data::getFieldArc(m_itemNo));
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* 80D3F23C-80D3F25C 00049C 0020+00 1/0 0/0 0/0 .text daObjZCloth_Draw__FP13daObjZCloth_c */
|
||||
static int daObjZCloth_Draw(daObjZCloth_c* i_this) {
|
||||
return i_this->draw();
|
||||
}
|
||||
|
||||
/* 80D3F25C-80D3F27C 0004BC 0020+00 1/0 0/0 0/0 .text daObjZCloth_Execute__FP13daObjZCloth_c */
|
||||
static int daObjZCloth_Execute(daObjZCloth_c* i_this) {
|
||||
return i_this->execute();
|
||||
}
|
||||
|
||||
/* 80D3F27C-80D3F29C 0004DC 0020+00 1/0 0/0 0/0 .text daObjZCloth_Delete__FP13daObjZCloth_c */
|
||||
static int daObjZCloth_Delete(daObjZCloth_c* i_this) {
|
||||
return i_this->_delete();
|
||||
}
|
||||
|
||||
/* 80D3F29C-80D3F2BC 0004FC 0020+00 1/0 0/0 0/0 .text daObjZCloth_Create__FP10fopAc_ac_c */
|
||||
static int daObjZCloth_Create(fopAc_ac_c* i_this) {
|
||||
return static_cast<daObjZCloth_c*>(i_this)->create();
|
||||
}
|
||||
|
||||
/* 80D3F2D4-80D3F2F4 -00001 0020+00 1/0 0/0 0/0 .data l_daObjZCloth_Method */
|
||||
static actor_method_class l_daObjZCloth_Method = {
|
||||
(process_method_func)daObjZCloth_Create,
|
||||
(process_method_func)daObjZCloth_Delete,
|
||||
@@ -95,7 +83,6 @@ static actor_method_class l_daObjZCloth_Method = {
|
||||
(process_method_func)daObjZCloth_Draw,
|
||||
};
|
||||
|
||||
/* 80D3F2F4-80D3F324 -00001 0030+00 0/0 0/0 1/0 .data g_profile_Obj_ZoraCloth */
|
||||
extern actor_process_profile_definition g_profile_Obj_ZoraCloth = {
|
||||
fpcLy_CURRENT_e,
|
||||
7,
|
||||
|
||||
Reference in New Issue
Block a user