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:
TakaRikka
2025-11-30 14:23:42 -08:00
committed by GitHub
parent 434415337d
commit a6e76c0841
2375 changed files with 24683 additions and 71069 deletions
-21
View File
@@ -9,14 +9,12 @@
#include "d/d_com_inf_game.h"
#include "d/d_procname.h"
/* 80BC288C-80BC28C8 0000EC 003C+00 1/1 0/0 0/0 .text __ct__14daBsGate_HIO_cFv */
daBsGate_HIO_c::daBsGate_HIO_c() {
mOpenSpeed = 2.0f;
mCloseSpeed = 12.0f;
mShockStrength = 3;
}
/* 80BC2910-80BC29AC 000170 009C+00 2/2 0/0 0/0 .text setBaseMtx__10daBsGate_cFv */
void daBsGate_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);
@@ -25,7 +23,6 @@ void daBsGate_c::setBaseMtx() {
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
}
/* 80BC29AC-80BC2A18 00020C 006C+00 1/0 0/0 0/0 .text CreateHeap__10daBsGate_cFv */
int daBsGate_c::CreateHeap() {
J3DModelData* model_data = (J3DModelData*)dComIfG_getObjectRes("S_Zgate", 4);
mpModel = mDoExt_J3DModel__create(model_data, 0x80000, 0x11000084);
@@ -35,7 +32,6 @@ int daBsGate_c::CreateHeap() {
return 1;
}
/* 80BC2A18-80BC2B6C 000278 0154+00 1/1 0/0 0/0 .text create__10daBsGate_cFv */
cPhs__Step daBsGate_c::create() {
fopAcM_ct(this, daBsGate_c);
cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, "S_Zgate");
@@ -61,7 +57,6 @@ cPhs__Step daBsGate_c::create() {
return step;
}
/* 80BC2B6C-80BC2BBC 0003CC 0050+00 1/0 0/0 0/0 .text Execute__10daBsGate_cFPPA3_A4_f */
int daBsGate_c::Execute(Mtx** i_mtxP) {
moveGate();
*i_mtxP = &mpModel->getBaseTRMtx();
@@ -69,10 +64,8 @@ int daBsGate_c::Execute(Mtx** i_mtxP) {
return 1;
}
/* 80BC32DC-80BC32EC 000014 0010+00 3/3 0/0 0/0 .bss l_HIO */
static daBsGate_HIO_c l_HIO;
/* 80BC2BBC-80BC2CC4 00041C 0108+00 1/1 0/0 0/0 .text moveGate__10daBsGate_cFv */
void daBsGate_c::moveGate() {
typedef void (daBsGate_c::*daBsGate_modeFunc)();
static daBsGate_modeFunc mode_proc[3] = {
@@ -92,22 +85,18 @@ void daBsGate_c::moveGate() {
(this->*mode_proc[mMode])();
}
/* 80BC2CC4-80BC2CD0 000524 000C+00 3/3 0/0 0/0 .text init_modeWait__10daBsGate_cFv */
void daBsGate_c::init_modeWait() {
mMode = MODE_WAIT;
}
/* 80BC2CD0-80BC2CD4 000530 0004+00 1/0 0/0 0/0 .text modeWait__10daBsGate_cFv */
void daBsGate_c::modeWait() {
/* empty function */
}
/* 80BC2CD4-80BC2CE0 000534 000C+00 1/1 0/0 0/0 .text init_modeOpen__10daBsGate_cFv */
void daBsGate_c::init_modeOpen() {
mMode = MODE_OPEN;
}
/* 80BC2CE0-80BC2E34 000540 0154+00 1/0 0/0 0/0 .text modeOpen__10daBsGate_cFv */
void daBsGate_c::modeOpen() {
if (mSide == 0) {
mDoAud_seStartLevel(Z2SE_OBJ_SW_W_DR_OP, &current.pos, 0,
@@ -123,12 +112,10 @@ void daBsGate_c::modeOpen() {
}
}
/* 80BC2E34-80BC2E40 000694 000C+00 1/1 0/0 0/0 .text init_modeClose__10daBsGate_cFv */
void daBsGate_c::init_modeClose() {
mMode = MODE_CLOSE;
}
/* 80BC2E40-80BC2F94 0006A0 0154+00 1/0 0/0 0/0 .text modeClose__10daBsGate_cFv */
void daBsGate_c::modeClose() {
if (mSide == 0) {
mDoAud_seStartLevel(Z2SE_OBJ_SW_W_DR_CL, &current.pos, 0,
@@ -144,7 +131,6 @@ void daBsGate_c::modeClose() {
}
}
/* 80BC2F94-80BC3038 0007F4 00A4+00 1/0 0/0 0/0 .text Draw__10daBsGate_cFv */
int daBsGate_c::Draw() {
g_env_light.settingTevStruct(0x10, &current.pos, &tevStr);
g_env_light.setLightTevColorType_MAJI(mpModel, &tevStr);
@@ -154,34 +140,28 @@ int daBsGate_c::Draw() {
return 1;
}
/* 80BC3038-80BC3068 000898 0030+00 1/0 0/0 0/0 .text Delete__10daBsGate_cFv */
int daBsGate_c::Delete() {
dComIfG_resDelete(&mPhaseReq, "S_Zgate");
return 1;
}
/* 80BC3068-80BC3094 0008C8 002C+00 1/0 0/0 0/0 .text daBsGate_Draw__FP10daBsGate_c */
static int daBsGate_Draw(daBsGate_c* i_this) {
return i_this->MoveBGDraw();
}
/* 80BC3094-80BC30B4 0008F4 0020+00 1/0 0/0 0/0 .text daBsGate_Execute__FP10daBsGate_c */
static int daBsGate_Execute(daBsGate_c* i_this) {
return i_this->MoveBGExecute();
}
/* 80BC30B4-80BC30D4 000914 0020+00 1/0 0/0 0/0 .text daBsGate_Delete__FP10daBsGate_c */
static int daBsGate_Delete(daBsGate_c* i_this) {
return i_this->MoveBGDelete();
}
/* 80BC30D4-80BC30F4 000934 0020+00 1/0 0/0 0/0 .text daBsGate_Create__FP10fopAc_ac_c */
static cPhs__Step daBsGate_Create(fopAc_ac_c* i_this) {
return static_cast<daBsGate_c*>(i_this)->create();
}
/* 80BC3234-80BC3254 -00001 0020+00 1/0 0/0 0/0 .data l_daBsGate_Method */
static actor_method_class l_daBsGate_Method = {
(process_method_func)daBsGate_Create,
(process_method_func)daBsGate_Delete,
@@ -190,7 +170,6 @@ static actor_method_class l_daBsGate_Method = {
(process_method_func)daBsGate_Draw,
};
/* 80BC3254-80BC3284 -00001 0030+00 0/0 0/0 1/0 .data g_profile_Obj_BsGate */
extern actor_process_profile_definition g_profile_Obj_BsGate = {
fpcLy_CURRENT_e,
3,