fopAcM_Register cleanup (#3047)

* use macro `fopAcM_Register` more consistently

* replace fopAcM_RegisterCreateID with version that doesn't create `a_this`
This commit is contained in:
roeming
2026-01-17 08:52:32 -05:00
committed by GitHub
parent 740387eb4f
commit d45b10d0fd
101 changed files with 184 additions and 200 deletions
+12 -15
View File
@@ -12,26 +12,23 @@
#include "f_pc/f_pc_manager.h"
#include "m_Do/m_Do_hostIO.h"
#define fopAcM_ct(ptr, ClassName) \
if (!fopAcM_CheckCondition(ptr, fopAcCnd_INIT_e)) { \
new (ptr) ClassName(); \
fopAcM_OnCondition(ptr, fopAcCnd_INIT_e); \
#define fopAcM_ct(ptr, ClassName) \
if (!fopAcM_CheckCondition(ptr, fopAcCnd_INIT_e)) { \
new (ptr) ClassName(); \
fopAcM_OnCondition(ptr, fopAcCnd_INIT_e); \
}
#define fopAcM_RegisterDeleteID(i_this, actor_name_str) \
const fpc_ProcID procID = fopAcM_GetID(i_this); \
"Delete -> " actor_name_str "(id=%d)\n"
#define fopAcM_RegisterDeleteID(i_this, actor_name_str) \
("Delete -> " actor_name_str "(id=%d)\n", fopAcM_GetID(i_this))
#define fopAcM_RegisterCreateID(actor_class, i_this, actor_name_str) \
actor_class* a_this = static_cast<actor_class*>(i_this); \
const fpc_ProcID procID = fopAcM_GetID(i_this); \
"Create -> " actor_name_str "(id=%d)\n"
#define fopAcM_RegisterCreateID(i_this, actor_name_str) \
("Create -> " actor_name_str "(id=%d)\n", fopAcM_GetID(i_this))
#define fopAcM_RegisterDelete(i_this, actor_name_str) "Delete -> " actor_name_str "\n"
#define fopAcM_RegisterDelete(i_this, actor_name_str) \
("Delete -> " actor_name_str "\n")
#define fopAcM_RegisterCreate(actor_class, i_this, actor_name_str) \
static_cast<actor_class*>(i_this); \
"Create -> " actor_name_str "\n"
#define fopAcM_RegisterCreate(i_this, actor_name_str) \
("Create -> " actor_name_str "\n")
class J3DModelData; // placeholder
class JKRHeap;
+1 -1
View File
@@ -289,7 +289,7 @@ static int daDr_IsDelete(daDr_c* i_this) {
}
int daDr_c::_delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "DR");
if (heap != NULL) {
mpModelMorf->stopZelAnime();
+2 -1
View File
@@ -99,7 +99,8 @@ static int daAndsw_Delete(daAndsw_c* i_this) {
}
static int daAndsw_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daAndsw_c, i_this, "Andsw");
daAndsw_c* a_this = (daAndsw_c*)i_this;
fopAcM_RegisterCreateID(i_this, "Andsw");
return a_this->create();
}
+1 -1
View File
@@ -1409,7 +1409,7 @@ static int daB_BH_IsDelete(b_bh_class* i_this) {
static int daB_BH_Delete(b_bh_class* i_this) {
fopAc_ac_c* a_this = (fopAc_ac_c*)i_this;
fpc_ProcID id = fopAcM_GetID(a_this);
fopAcM_RegisterDeleteID(a_this, "B_BH");
dComIfG_resDelete(&i_this->mPhase, "B_BH");
if (i_this->mInitHIO) {
+1 -5
View File
@@ -3379,14 +3379,10 @@ int daB_MGN_c::_delete() {
}
static int daB_MGN_Delete(daB_MGN_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "B_MGN");
return i_this->_delete();
}
#if DEBUG
char* const unused = "Delete -> B_MGN(id=%d)\n";
#endif
int daB_MGN_c::CreateHeap() {
J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes("B_mgn", BMDR_MGN);
JUT_ASSERT(4010, modelData != NULL);
+2 -1
View File
@@ -1341,6 +1341,7 @@ daBoomerang_c::~daBoomerang_c() {
}
static int daBoomerang_Delete(daBoomerang_c* i_this) {
fopAcM_RegisterDeleteID(i_this, "Boomerang");
i_this->~daBoomerang_c();
return 1;
}
@@ -1419,7 +1420,7 @@ static dCcD_SrcCyl l_windAtCylSrc = {
};
int daBoomerang_c::create() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterCreateID(this, "Boomerang");
fopAcM_ct(this, daBoomerang_c);
if (!fopAcM_entrySolidHeap(this, daBoomerang_createHeap, 0xC0D0)) {
+2 -2
View File
@@ -168,7 +168,7 @@ int daCanoe_c::create() {
static int daCanoe_Create(fopAc_ac_c* i_this) {
daCanoe_c* a_this = (daCanoe_c*)i_this;
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterCreateID(i_this, "Canoe");
return a_this->create();
}
@@ -178,7 +178,7 @@ daCanoe_c::~daCanoe_c() {
}
static int daCanoe_Delete(daCanoe_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "Canoe");
i_this->~daCanoe_c();
return 1;
}
+1 -1
View File
@@ -3265,7 +3265,7 @@ static int daCow_Draw(void* actor) {
}
int daCow_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "COW");
dComIfG_resDelete(&mPhase, "Cow");
if (heap != NULL) {
+2 -1
View File
@@ -1837,7 +1837,8 @@ static int daDemo00_Delete(daDemo00_c* i_this) {
}
static int daDemo00_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daDemo00_c, i_this, "Demo00");
daDemo00_c* a_this = (daDemo00_c*)i_this;
fopAcM_RegisterCreateID(i_this, "Demo00");
fopAcM_ct(a_this, daDemo00_c);
a_this->field_0x6a2 = 0;
+1 -1
View File
@@ -2342,7 +2342,7 @@ static int daDo_IsDelete(do_class* i_this) {
}
static int daDo_Delete(do_class* i_this) {
u32 actor_id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "Do");
dComIfG_resDelete(&i_this->mPhase, "Do");
if (i_this->mHIOInit) {
hio_set = false;
+2 -1
View File
@@ -1173,7 +1173,8 @@ int daSpiral_Delete(daSpiral_c* i_this) {
}
int daSpiral_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daSpiral_c, i_this, "Door10");
daSpiral_c* a_this = (daSpiral_c*)i_this;
fopAcM_RegisterCreateID(i_this, "Door10");
fopAcM_ct(a_this, daSpiral_c);
return a_this->create();
}
+1 -1
View File
@@ -1283,7 +1283,7 @@ int daE_BG_c::_delete() {
}
static int daE_BG_Delete(daE_BG_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_BG");
return i_this->_delete();
}
+1 -1
View File
@@ -779,7 +779,7 @@ static int daE_BS_IsDelete(e_bs_class* i_this) {
static int daE_BS_Delete(e_bs_class* i_this) {
fopAc_ac_c* actor = &i_this->enemy;
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_BS");
dComIfG_resDelete(&i_this->phase, "E_BS");
if (i_this->HIOInit) {
+1 -1
View File
@@ -990,7 +990,7 @@ static int daE_BU_IsDelete(e_bu_class* i_this) {
static int daE_BU_Delete(e_bu_class* i_this) {
fopAc_ac_c* actor = &i_this->enemy;
fpc_ProcID id = fopAcM_GetID(actor);
fopAcM_RegisterDeleteID(actor, "E_BU");
dComIfG_resDelete(&i_this->phase, "E_BU");
if (i_this->HIOInit != 0) {
+1 -1
View File
@@ -443,7 +443,7 @@ static int daE_CR_IsDelete(e_cr_class* a_this) {
static int daE_CR_Delete(e_cr_class* a_this) {
fopEn_enemy_c* actor = &a_this->enemy;
fpc_ProcID id = fopAcM_GetID(a_this);
fopAcM_RegisterDeleteID(a_this, "E_CR");
dComIfG_resDelete(&a_this->phase, "E_CR");
if (a_this->HIOInit) {
+2 -2
View File
@@ -140,7 +140,7 @@ static int daE_CR_EGG_IsDelete(e_cr_egg_class* a_this) {
static int daE_CR_EGG_Delete(e_cr_egg_class* a_this) {
fopAc_ac_c* actor = &a_this->enemy;
fpc_ProcID id = fopAcM_GetID(actor);
fopAcM_RegisterDeleteID(actor, "E_CR_EGG");
dComIfG_resDelete(&a_this->phase, "E_CR");
a_this->sound.stopAnime();
return 1;
@@ -162,7 +162,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
static int daE_CR_EGG_Create(fopAc_ac_c* i_this) {
e_cr_egg_class* a_this = (e_cr_egg_class*)i_this;
fopAcM_ct(i_this, e_cr_egg_class);
fopAcM_ct(&a_this->enemy, e_cr_egg_class);
int phase_state = dComIfG_resLoad(&a_this->phase, "E_CR");
if (phase_state == cPhs_COMPLEATE_e) {
+1 -1
View File
@@ -2015,7 +2015,7 @@ static int daE_DB_IsDelete(e_db_class* i_this) {
static int daE_DB_Delete(e_db_class* i_this) {
fopAc_ac_c* actor = &i_this->enemy;
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_DB");
dComIfG_resDelete(&i_this->phase, "E_db");
if (i_this->HIOInit) {
+3 -3
View File
@@ -642,7 +642,7 @@ static int daE_DF_IsDelete(daE_DF_c* i_this) {
}
static int daE_DF_Delete(daE_DF_c* i_this) {
fpc_ProcID proc_id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_DF");
return i_this->Delete();
}
@@ -655,7 +655,7 @@ int daE_DF_c::Create() {
mArg0 = (u8)fopAcM_GetParam(this);
if (mArg0 != 0xff && dComIfGs_isSwitch(mArg0, fopAcM_GetRoomNo(this))) {
OS_REPORT("E_WS やられ後なので再セットしません");
OS_REPORT("E_WS やられ後なので再セットしません\n");
return cPhs_ERROR_e;
}
@@ -706,7 +706,7 @@ int daE_DF_c::Create() {
static int daE_DF_Create(fopAc_ac_c* i_this) {
daE_DF_c* a_this = (daE_DF_c*)i_this;
fpc_ProcID proc_id = fopAcM_GetID(i_this);
fopAcM_RegisterCreateID(i_this, "E_DF");
return a_this->Create();
}
+1 -1
View File
@@ -932,7 +932,7 @@ int daE_DK_c::_delete() {
}
static int daE_DK_Delete(daE_DK_c* i_this) {
fpc_ProcID unusedId = fopAcM_GetID(i_this); // debug match
fopAcM_RegisterDeleteID(i_this, "E_DK");
return i_this->_delete();
}
+1 -1
View File
@@ -3282,7 +3282,7 @@ static int daE_DN_IsDelete(e_dn_class* i_this) {
static int daE_DN_Delete(e_dn_class* i_this) {
fopEn_enemy_c* actor = (fopEn_enemy_c*)&i_this->actor;
fpc_ProcID no = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_DN");
dComIfG_resDelete(&i_this->phase, "E_dn");
+1 -7
View File
@@ -817,12 +817,6 @@ void daE_FB_c::dead_eff_set() {
}
}
#if DEBUG
static char* dummy_117771() {
return "Delete -> E_FB(id=%d)\n";
}
#endif
int daE_FB_c::execute() {
if (field_0x69c != 0) {
--field_0x69c;
@@ -869,7 +863,7 @@ int daE_FB_c::_delete() {
}
static int daE_FB_Delete(daE_FB_c* i_this) {
int id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_FB");
return static_cast<daE_FB_c*>(i_this)->_delete();
}
+6 -6
View File
@@ -153,18 +153,18 @@ static int daE_Ga_IsDelete(e_ga_class* a_this) {
static u8 hio_set;
static int daE_Ga_Delete(e_ga_class* a_this) {
fopAc_ac_c* actor = &a_this->actor;
fpc_ProcID id = fopAcM_GetID(actor);
static int daE_Ga_Delete(e_ga_class* i_this) {
fopAc_ac_c* actor = &i_this->actor;
fopAcM_RegisterDeleteID(i_this, "E_Ga");
if (a_this->initialized) {
if (i_this->initialized) {
J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes("E_ga", 3);
dComIfGp_removeSimpleModel(modelData, fopAcM_GetRoomNo(actor));
}
dComIfG_resDelete(&a_this->phase, "E_ga");
dComIfG_resDelete(&i_this->phase, "E_ga");
if (a_this->HIOInit) {
if (i_this->HIOInit) {
hio_set = FALSE;
}
+1 -3
View File
@@ -1544,10 +1544,8 @@ static int daE_GB_IsDelete(e_gb_class* i_this) {
}
static int daE_GB_Delete(e_gb_class* i_this) {
"Delete -> E_GB(id=%d)\n";
fopEn_enemy_c* actor = &i_this->actor;
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_GB");
dComIfG_resDelete(&i_this->phase, "E_gb");
if (i_this->hioInit != 0) {
+1 -1
View File
@@ -1323,7 +1323,7 @@ static int daE_HB_IsDelete(e_hb_class* i_this) {
static int daE_HB_Delete(e_hb_class* i_this) {
fopAc_ac_c* actor = &i_this->enemy;
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_HB");
dComIfG_resDelete(&i_this->phase, "E_hb");
if (i_this->HIOInit) {
+1 -1
View File
@@ -1393,7 +1393,7 @@ static int daE_HM_IsDelete(daE_HM_c* i_this) {
}
static int daE_HM_Delete(daE_HM_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_HM");
return i_this->Delete();
}
+9 -9
View File
@@ -1132,14 +1132,14 @@ int daE_HP_c::_delete() {
}
static int daE_HP_Delete(daE_HP_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_HP");
return i_this->_delete();
}
int daE_HP_c::CreateHeap() {
J3DModelData* modeldata = (J3DModelData*)dComIfG_getObjectRes("E_HP", 19);
JUT_ASSERT(0x764, modeldata != NULL);
mpMorfSO = new mDoExt_McaMorfSO(modeldata, NULL, NULL,
J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes("E_HP", 19);
JUT_ASSERT(0x764, modelData != NULL);
mpMorfSO = new mDoExt_McaMorfSO(modelData, NULL, NULL,
(J3DAnmTransform*)dComIfG_getObjectRes("E_HP", 13), 2, 1.0f, 0,
-1, &mSound1, 0x80000, 0x11000084);
if (mpMorfSO == NULL || mpMorfSO->getModel() == NULL) {
@@ -1159,10 +1159,10 @@ int daE_HP_c::CreateHeap() {
}
}
modeldata = (J3DModelData*)dComIfG_getObjectRes("E_HP", 20);
JUT_ASSERT(0x78b, modeldata != NULL);
modelData = (J3DModelData*)dComIfG_getObjectRes("E_HP", 20);
JUT_ASSERT(0x78b, modelData != NULL);
mpModel = mDoExt_J3DModel__create(modeldata, 0x80000, 0x11000084);
mpModel = mDoExt_J3DModel__create(modelData, 0x80000, 0x11000084);
if (mpModel == NULL) {
return 0;
}
@@ -1174,9 +1174,9 @@ int daE_HP_c::CreateHeap() {
}
}
modeldata = (J3DModelData*)dComIfG_getObjectRes("E_HP", 18);
modelData = (J3DModelData*)dComIfG_getObjectRes("E_HP", 18);
mpMorf =
new mDoExt_McaMorf(modeldata, NULL, NULL, (J3DAnmTransform*)dComIfG_getObjectRes("E_HP", 4),
new mDoExt_McaMorf(modelData, NULL, NULL, (J3DAnmTransform*)dComIfG_getObjectRes("E_HP", 4),
2, 1.0f, 0, -1, 1, NULL, 0x80000, 0x11000084);
if (mpMorf == NULL || mpMorf->getModel() == 0) {
+1 -1
View File
@@ -1870,7 +1870,7 @@ int daE_HZ_c::_delete() {
}
static int daE_HZ_Delete(daE_HZ_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_HZ");
return i_this->_delete();
}
+1 -1
View File
@@ -619,7 +619,7 @@ static int daE_MB_IsDelete(e_mb_class* i_this) {
static int daE_MB_Delete(e_mb_class* i_this) {
fopAc_ac_c* a_this = (fopAc_ac_c*)i_this;
fpc_ProcID id = fopAcM_GetID(a_this);
fopAcM_RegisterDeleteID(a_this, "E_MB");
dComIfG_resDelete(&i_this->mPhase, "E_mb");
+1 -1
View File
@@ -102,7 +102,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
static int daE_MD_Create(fopAc_ac_c* i_this) {
daE_MD_c* a_this = (daE_MD_c*)i_this;
fpc_ProcID id = fopAcM_GetID(a_this);
fpc_ProcID id = fopAcM_GetID(i_this);
return a_this->create();
}
+1 -1
View File
@@ -2774,7 +2774,7 @@ static int daE_MK_IsDelete(e_mk_class* i_this) {
static int daE_MK_Delete(e_mk_class* i_this) {
fopEn_enemy_c* actor = (fopEn_enemy_c*)&i_this->actor;
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_MK");
dComIfG_resDelete(&i_this->phase, "E_mk");
if (i_this->hioInit != 0) {
+1 -1
View File
@@ -4758,7 +4758,7 @@ static int daE_RDY_IsDelete(e_rdy_class* i_this) {
static int daE_RDY_Delete(e_rdy_class* i_this) {
fopAc_ac_c* a_this = &i_this->actor;
fpc_ProcID unused = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_RDY");
dComIfG_resDelete(&i_this->mPhase, i_this->mpArcName);
if (i_this->mHIOInit) {
+1 -1
View File
@@ -1109,7 +1109,7 @@ static int daE_SH_IsDelete(e_sh_class* i_this) {
static int daE_SH_Delete(e_sh_class* i_this) {
fopAc_ac_c* actor = (fopAc_ac_c*)&i_this->enemy;
fpc_ProcID unusedId = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_SH");
dComIfG_resDelete(&i_this->mPhase, "E_sh");
+1 -1
View File
@@ -1399,7 +1399,7 @@ static int daE_SM2_IsDelete(e_sm2_class* i_this) {
static int daE_SM2_Delete(e_sm2_class* i_this) {
fopAc_ac_c* actor = &i_this->enemy;
fpc_ProcID id = fopAcM_GetID(&i_this->enemy);
fopAcM_RegisterDeleteID(&i_this->enemy, "E_SM2");
#if DEBUG
l_HIO.removeHIO(i_this->enemy);
+1 -1
View File
@@ -5470,7 +5470,7 @@ static int daE_WB_IsDelete(e_wb_class* i_this) {
static int daE_WB_Delete(e_wb_class* i_this) {
fopAc_ac_c* a_this = (fopAc_ac_c*)i_this;
fpc_ProcID unused = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_WB");
dComIfG_resDelete(&i_this->mPhase, i_this->mResName);
if (i_this->field_0x17e0 != 0) {
hio_set = false;
+1 -1
View File
@@ -1299,7 +1299,7 @@ static int daE_YG_IsDelete(e_yg_class* i_this) {
static int daE_YG_Delete(e_yg_class* i_this) {
fopAc_ac_c* actor = (fopAc_ac_c*)&i_this->actor;
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_YG");
dComIfG_resDelete(&i_this->mPhase, "E_YG");
+1 -1
View File
@@ -643,7 +643,7 @@ static int daFr_IsDelete(fr_class* i_this) {
}
static int daFr_Delete(fr_class* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "Fr");
dComIfG_resDelete(&i_this->mPhase, "Fr");
if (i_this->field_0x9e4) {
+4 -4
View File
@@ -791,9 +791,9 @@ int daHorse_c::create() {
}
static int daHorse_Create(fopAc_ac_c* i_this) {
daHorse_c* this_horse = (daHorse_c*)i_this;
fpc_ProcID unused = fopAcM_GetID(i_this);
return this_horse->create();
daHorse_c* a_this = (daHorse_c*)i_this;
fopAcM_RegisterCreateID(i_this, "HORSE");
return a_this->create();
}
void daHorse_c::setBasAnime(int param_0) {
@@ -4535,7 +4535,7 @@ daHorse_c::~daHorse_c() {
}
static int daHorse_Delete(daHorse_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "HORSE");
i_this->~daHorse_c();
return 1;
}
+2 -2
View File
@@ -243,7 +243,7 @@ int daHoZelda_c::create() {
static int daHoZelda_Create(fopAc_ac_c* i_this) {
daHoZelda_c* a_this = (daHoZelda_c*)i_this;
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterCreateID(i_this, "HOZELDA");
return a_this->create();
}
@@ -269,7 +269,7 @@ daHoZelda_c::~daHoZelda_c() {
}
static int daHoZelda_Delete(daHoZelda_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "HOZELDA");
i_this->~daHoZelda_c();
return 1;
}
+1 -1
View File
@@ -3712,7 +3712,7 @@ int daKago_c::_delete() {
}
static int daKago_Delete(daKago_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "Kago");
return i_this->_delete();
}
+2 -1
View File
@@ -759,13 +759,14 @@ static bool daMant_IsDelete(mant_class* i_this) {
}
static int daMant_Delete(mant_class* i_this) {
fopAcM_RegisterDeleteID(i_this, "Mant");
return 1;
}
static int daMant_Create(fopAc_ac_c* i_this) {
mant_class* m_this = (mant_class*)i_this;
fpc_ProcID unusedId = fopAcM_GetID(m_this);
fopAcM_RegisterCreateID(m_this, "Mant");
fopAcM_ct(m_this, mant_class);
//m_this->field_0x0570.field_0x74 = 0;
+1 -5
View File
@@ -6059,7 +6059,7 @@ static int dmg_rod_IsDelete(dmg_rod_class* i_this) {
static int dmg_rod_Delete(dmg_rod_class* i_this) {
fopAc_ac_c* actor = &i_this->actor;
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "Mg_rod");
dComIfG_resDelete(&i_this->phase, i_this->arcname);
if (i_this->HIOInit) {
@@ -6077,10 +6077,6 @@ static int dmg_rod_Delete(dmg_rod_class* i_this) {
return 1;
}
static void dummy_report_str_1() {
OS_REPORT("Delete -> Mg_rod(id=%d)\n");
}
static int useHeapInit(fopAc_ac_c* i_this) {
dmg_rod_class* a_this = (dmg_rod_class*)i_this;
J3DModel* model;
+4 -4
View File
@@ -664,9 +664,9 @@ cPhs__Step daMidna_c::create() {
}
static cPhs__Step daMidna_Create(fopAc_ac_c* i_this) {
daMidna_c* actor = (daMidna_c*)i_this;
fpc_ProcID id = fopAcM_GetID(i_this);
return actor->create();
daMidna_c* a_this = (daMidna_c*)i_this;
fopAcM_RegisterCreateID(i_this, "MIDNA");
return a_this->create();
}
void daMidna_c::allAnimePlay() {
@@ -3578,7 +3578,7 @@ daMidna_c::~daMidna_c() {
}
static int daMidna_Delete(daMidna_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "MIDNA");
i_this->~daMidna_c();
return 1;
}
+1 -1
View File
@@ -517,7 +517,7 @@ int daNpc_Bans_c::CreateHeap() {
int daNpc_Bans_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_Bans_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_BANS");
this->~daNpc_Bans_c();
return 1;
}
+1 -1
View File
@@ -229,7 +229,7 @@ int daNpcBlueNS_c::isDelete() {
}
int daNpcBlueNS_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_BLUENS");
this->~daNpcBlueNS_c();
return 1;
}
+1 -1
View File
@@ -416,7 +416,7 @@ int daNpcBouS_c::CreateHeap() {
}
int daNpcBouS_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_BOU_S");
this->~daNpcBouS_c();
return 1;
}
+1 -1
View File
@@ -2777,7 +2777,7 @@ BOOL daNpcChat_c::CreateHeap() {
}
int daNpcChat_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_CHAT");
this->~daNpcChat_c();
return 1;
}
+1 -5
View File
@@ -369,12 +369,8 @@ int daNpcChin_c::CreateHeap() {
return 1;
}
static void dummy() {
OS_REPORT("Delete -> NPC_CHIN(id=%d)\n");
}
int daNpcChin_c::Delete() {
fpc_ProcID unusedId = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_CHIN");
OS_REPORT("----------------------daNpcChin_c::Delete!!\n");
this->~daNpcChin_c();
return 1;
+1 -1
View File
@@ -208,7 +208,7 @@ int daNpc_clerkA_c::CreateHeap() {
}
int daNpc_clerkA_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_CLERKA");
this->~daNpc_clerkA_c();
return 1;
}
+1 -1
View File
@@ -219,7 +219,7 @@ int daNpc_clerkB_c::CreateHeap() {
}
int daNpc_clerkB_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_CLERKB");
this->~daNpc_clerkB_c();
return 1;
}
+1 -1
View File
@@ -201,7 +201,7 @@ int daNpcClerkT_c::CreateHeap() {
}
int daNpcClerkT_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_CLERKT");
this->~daNpcClerkT_c();
return 1;
}
+2 -2
View File
@@ -323,8 +323,8 @@ static int daNpc_Df_IsDelete(npc_df_class* i_this) {
}
static int daNpc_Df_Delete(npc_df_class* i_this) {
fopAc_ac_c* actor = (fopAc_ac_c*)&i_this->actor;
fpc_ProcID id = fopAcM_GetID(actor);
fopAc_ac_c* actor = &i_this->actor;
fopAcM_RegisterDeleteID(&i_this->actor, "Npc_Df");
if (i_this->field_0x573) {
J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes("Npc_df", 3);
+1 -1
View File
@@ -259,7 +259,7 @@ int daNpc_Doc_c::CreateHeap() {
int daNpc_Doc_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_Doc_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_DOC");
this->~daNpc_Doc_c();
return 1;
}
+1 -1
View File
@@ -174,7 +174,7 @@ int daNpcDrSol_c::CreateHeap() {
}
int daNpcDrSol_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_DRSOL");
this->~daNpcDrSol_c();
return 1;
}
+1 -1
View File
@@ -584,7 +584,7 @@ static int daNpc_Du_IsDelete(npc_du_class* i_this) {
static int daNpc_Du_Delete(npc_du_class* i_this) {
fopAc_ac_c* actor = (fopAc_ac_c*)&i_this->actor;
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "Npc_Du");
dComIfG_resDelete(&i_this->mPhase, "Npc_Du");
+1 -1
View File
@@ -726,7 +726,7 @@ bool daNpc_Fairy_c::afterSetMotionAnm(int i_idx, int i_bck_attr, f32 i_morf, int
int daNpc_Fairy_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_Fairy_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_FAIRY");
this->~daNpc_Fairy_c();
return 1;
}
+1 -1
View File
@@ -518,7 +518,7 @@ int daNpc_grO_c::CreateHeap() {
}
int daNpc_grO_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_GRO");
this->~daNpc_grO_c();
return 1;
}
+1 -1
View File
@@ -259,7 +259,7 @@ int daNpc_grS_c::CreateHeap() {
}
int daNpc_grS_c::Delete() {
fpc_ProcID unusedId = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_GRS");
this->~daNpc_grS_c();
return 1;
}
+1 -1
View File
@@ -408,7 +408,7 @@ int daNpc_Hoz_c::CreateHeap() {
int daNpc_Hoz_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_Hoz_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_HOZ");
this->~daNpc_Hoz_c();
return 1;
}
+1 -1
View File
@@ -407,7 +407,7 @@ static int daNpc_Inko_IsDelete(npc_inko_class* i_this) {
static int daNpc_Inko_Delete(npc_inko_class* i_this) {
fopAc_ac_c* actor = (fopAc_ac_c*)i_this;
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "Npc_Inko");
dComIfG_resDelete(&i_this->phase, "Npc_inko");
if (actor->heap != NULL) {
+1 -1
View File
@@ -430,7 +430,7 @@ int daNpc_Kkri_c::CreateHeap() {
int daNpc_Kkri_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_Kkri_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_KKRI");
this->~daNpc_Kkri_c();
return 1;
}
+1 -1
View File
@@ -281,7 +281,7 @@ int daNpc_myna2_c::CreateHeap() {
}
int daNpc_myna2_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_MYNA2");
this->~daNpc_myna2_c();
return 1;
}
+1 -1
View File
@@ -651,7 +651,7 @@ int daNpc_Pachi_Maro_c::CreateHeap() {
int daNpc_Pachi_Maro_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_Pachi_Maro_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_Pachi_MARO");
this->~daNpc_Pachi_Maro_c();
return 1;
}
+1 -1
View File
@@ -901,7 +901,7 @@ int daNpc_Pachi_Taro_c::CreateHeap() {
int daNpc_Pachi_Taro_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_Pachi_Taro_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_TARO");
this->~daNpc_Pachi_Taro_c();
return 1;
}
+1 -1
View File
@@ -521,7 +521,7 @@ int daNpc_Post_c::CreateHeap() {
int daNpc_Post_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_Post_c -> コンストラクト\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_POST");
this->~daNpc_Post_c();
return 1;
}
+1 -3
View File
@@ -349,9 +349,7 @@ int daNpcRafrel_c::CreateHeap() {
}
int daNpcRafrel_c::Delete() {
"Delete -> NPC_RAFREL(id=%d)\n";
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_RAFREL");
this->~daNpcRafrel_c();
return 1;
}
+1 -1
View File
@@ -328,7 +328,7 @@ int daNpc_Sha_c::CreateHeap() {
int daNpc_Sha_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_Sha_c -> コンストラクト\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_SHAMAN");
this->~daNpc_Sha_c();
return 1;
}
+1 -1
View File
@@ -311,7 +311,7 @@ int daNpc_SoldierA_c::CreateHeap() {
}
int daNpc_SoldierA_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_SOLDIERa");
this->~daNpc_SoldierA_c();
return 1;
}
+1 -1
View File
@@ -273,7 +273,7 @@ int daNpc_SoldierB_c::CreateHeap() {
}
int daNpc_SoldierB_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_SOLDIERb");
this->~daNpc_SoldierB_c();
return 1;
}
+1 -1
View File
@@ -326,7 +326,7 @@ int daNpcTheB_c::CreateHeap() {
}
int daNpcTheB_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_THEB");
this->~daNpcTheB_c();
return 1;
}
+1 -1
View File
@@ -297,7 +297,7 @@ int daNpcTkc_c::CreateHeap() {
}
int daNpcTkc_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_TKC");
this->~daNpcTkc_c();
return 1;
}
+1 -1
View File
@@ -251,7 +251,7 @@ int daNpcTkj_c::CreateHeap() {
int daNpcTkj_c::Delete() {
OS_REPORT("|%06d:%x|daNpcTkj_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_TKJ");
this->~daNpcTkj_c();
return 1;
}
+1 -1
View File
@@ -297,7 +297,7 @@ int daNpc_yamiD_c::CreateHeap() {
int daNpc_yamiD_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_yamiD_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID reg_r30 = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_YAMID");
this->~daNpc_yamiD_c();
return 1;
}
+1 -1
View File
@@ -232,7 +232,7 @@ int daNpc_yamiS_c::CreateHeap() {
}
int daNpc_yamiS_c::Delete() {
fpc_ProcID reg_r30 = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_YAMIS");
this->~daNpc_yamiS_c();
return 1;
}
+1 -1
View File
@@ -235,7 +235,7 @@ int daNpc_yamiT_c::CreateHeap() {
}
int daNpc_yamiT_c::Delete() {
fpc_ProcID reg_r30 = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_YAMIT");
this->~daNpc_yamiT_c();
return 1;
}
+1 -5
View File
@@ -750,15 +750,11 @@ int daNpc_ykM_c::CreateHeap() {
int daNpc_ykM_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_ykM_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID unusedId = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_YKM");
this->~daNpc_ykM_c();
return 1;
}
static void dummy_string() {
OS_REPORT("Delete -> NPC_YKM(id=%d)\n", 0);
}
int daNpc_ykM_c::Execute() {
return execute();
}
+1 -1
View File
@@ -431,7 +431,7 @@ int daNpc_ykW_c::CreateHeap() {
int daNpc_ykW_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_ykW_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_YKW");
this->~daNpc_ykW_c();
return 1;
}
+1 -1
View File
@@ -239,7 +239,7 @@ int daNpc_zanB_c::CreateHeap() {
int daNpc_zanB_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_zanB_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_ZANB");
this->~daNpc_zanB_c();
return 1;
}
+1 -1
View File
@@ -285,7 +285,7 @@ int daNpc_Zelda_c::CreateHeap() {
int daNpc_Zelda_c::Delete() {
OS_REPORT("|%06d:%x|daNpc_Zelda_c -> Delete\n", g_Counter.mCounter0, this);
fpc_ProcID unusedId = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "NPC_ZELDA");
this->~daNpc_Zelda_c();
return 1;
}
+3 -2
View File
@@ -1407,6 +1407,7 @@ static int daObj_Brg_IsDelete(obj_brg_class* i_this) {
}
static int daObj_Brg_Delete(obj_brg_class* i_this) {
fopAcM_RegisterDeleteID(i_this, "Obj_Brg");
dComIfG_resDelete(&i_this->mPhase, "Obj_brg");
if (i_this->mpBgW != NULL) {
@@ -1600,7 +1601,7 @@ static int CallbackCreateHeap(fopAc_ac_c* i_this) {
}
}
OS_REPORT("BGSV SET 1! \n");
OS_REPORT("BGSV SET 1!\n");
a_this->mpBgW = new dBgWSv();
if (a_this->mpBgW == NULL) {
@@ -1638,7 +1639,7 @@ static int daObj_Brg_Create(fopAc_ac_c* i_this) {
int sp54;
br_s* part;
int loop, sp60, brno, iter;
int fop_id = fopAcM_GetID(i_this);
fopAcM_RegisterCreateID(i_this, "Obj_Brg");
fopAcM_ct(i_this, obj_brg_class);
phase_state = dComIfG_resLoad(&a_this->mPhase, "Obj_brg");
+4 -11
View File
@@ -221,13 +221,6 @@ void daObjCBlk_c::block_mode_proc_call() {
(this->*(l_func[field_0xc1e]))();
}
#if DEBUG
static void dummy5() {
OS_REPORT("Delete -> ChainBlock(id=%d)\n");
OS_REPORT("Create -> ChainBlock(id=%d)\n");
}
#endif
void daObjCBlk_c::initWait() {
field_0xc1f = 0;
}
@@ -381,14 +374,14 @@ static int daObjCBlk_Execute(daObjCBlk_c* i_this) {
}
static int daObjCBlk_Delete(daObjCBlk_c* i_this) {
fpc_ProcID unusedId = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "ChainBlock");
return i_this->MoveBGDelete();
}
static int daObjCBlk_Create(fopAc_ac_c* i_this) {
daObjCBlk_c* cblock = static_cast<daObjCBlk_c*>(i_this);
fpc_ProcID unusedId = fopAcM_GetID(i_this);
return cblock->create();
daObjCBlk_c* a_this = (daObjCBlk_c*)i_this;
fopAcM_RegisterCreateID(i_this, "ChainBlock");
return a_this->create();
}
#if DEBUG
+4 -6
View File
@@ -83,16 +83,14 @@ static int daCowdoor_Execute(daCowdoor_c* i_this) {
}
static int daCowdoor_Delete(daCowdoor_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
(void)"Delete -> Cowdoor(id=%d)\n";
fopAcM_RegisterDeleteID(i_this, "Cowdoor");
return i_this->MoveBGDelete();
}
static int daCowdoor_Create(fopAc_ac_c* i_this) {
daCowdoor_c* cowDoor = (daCowdoor_c*)i_this;
fpc_ProcID id = fopAcM_GetID(i_this);
(void)"Create -> Cowdoor(id=%d)\n";
return cowDoor->create();
daCowdoor_c* a_this = (daCowdoor_c*)i_this;
fopAcM_RegisterCreateID(i_this, "Cowdoor");
return a_this->create();
}
static actor_method_class l_daCowdoor_Method = {
+2 -1
View File
@@ -103,7 +103,8 @@ int daObjCrope_c::create() {
}
static int daObjCrope_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daObjCrope_c, i_this, "Obj_Crope");
daObjCrope_c* a_this = (daObjCrope_c*)i_this;
fopAcM_RegisterCreateID(i_this, "Obj_Crope");
return static_cast<daObjCrope_c*>(i_this)->create();
}
+2 -1
View File
@@ -188,7 +188,8 @@ static int daObjDamCps_Delete(daObjDamCps_c* i_this) {
}
static int daObjDamCps_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daObjDamCps_c, i_this, "DamCps");
daObjDamCps_c* a_this = (daObjDamCps_c*)i_this;
fopAcM_RegisterCreateID(i_this, "DamCps");
return a_this->create();
}
+2 -1
View File
@@ -176,7 +176,8 @@ static int daObjIce_s_Delete(daObjIce_s_c* i_this) {
}
static int daObjIce_s_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daObjIce_s_c, i_this, "Obj_Ice_s");
daObjIce_s_c* a_this = (daObjIce_s_c*)i_this;
fopAcM_RegisterCreateID(i_this, "Obj_Ice_s");
return a_this->create();
}
+2 -1
View File
@@ -170,7 +170,8 @@ static int daObjIta_Delete(daObjIta_c* i_this) {
}
static int daObjIta_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daObjIta_c, i_this, "Obj_Ita");
daObjIta_c* a_this = (daObjIta_c*)i_this;
fopAcM_RegisterCreateID(i_this, "Obj_Ita");
return a_this->create();
}
+2 -1
View File
@@ -129,7 +129,8 @@ int daObjKUW_c::CreateHeap() {
}
static int daObjKUW_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daObjKUW_c, i_this, "Obj_Kuw");
daObjKUW_c* a_this = (daObjKUW_c*)i_this;
fopAcM_RegisterCreateID(i_this, "Obj_Kuw");
return a_this->create();
}
+2 -1
View File
@@ -439,7 +439,8 @@ inline int daObjKznkarm_c::create() {
}
static int daObjKznkarm_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daObjKznkarm_c, i_this, "KznkArm");
daObjKznkarm_c* a_this = (daObjKznkarm_c*)i_this;
fopAcM_RegisterCreateID(i_this, "KznkArm");
return a_this->create();
}
+3 -2
View File
@@ -370,8 +370,9 @@ static int daObjMHole_Delete(daObjMHole_c* i_this) {
}
static int daObjMHole_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daObjMHole_c,i_this, "MHole");
return static_cast<daObjMHole_c*>(i_this)->create();
daObjMHole_c* a_this = (daObjMHole_c*)i_this;
fopAcM_RegisterCreateID(i_this, "MHole");
return a_this->create();
}
static actor_method_class l_daObjMHole_Method = {
+3 -2
View File
@@ -120,8 +120,9 @@ int daObjMirror6Pole_c::create() {
}
static int daObjMirror6Pole_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daObjMirror6Pole_c, i_this, "Obj_Mirror6Pole");
return static_cast<daObjMirror6Pole_c*>(i_this)->create();
daObjMirror6Pole_c* a_this = (daObjMirror6Pole_c*)i_this;
fopAcM_RegisterCreateID(i_this, "Obj_Mirror6Pole");
return a_this->create();
}
daObjMirror6Pole_c::~daObjMirror6Pole_c() {
+2 -1
View File
@@ -428,7 +428,8 @@ static int daPoFire_Delete(daPoFire_c* i_this) {
}
static int daPoFire_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daPoFire_c, i_this, "daPoFire");
daPoFire_c* a_this = (daPoFire_c*)i_this;
fopAcM_RegisterCreateID(i_this, "daPoFire");
return a_this->create();
}
+4 -3
View File
@@ -373,9 +373,10 @@ int daObjItaRope_c::create() {
return rv;
}
static int daObjItaRope_Create(fopAc_ac_c* i_actor) {
fopAcM_RegisterCreateID(daObjItaRope_c, i_actor, "Obj_ItaRope");
return static_cast<daObjItaRope_c*>(i_actor)->create();
static int daObjItaRope_Create(fopAc_ac_c* i_this) {
daObjItaRope_c* a_this = (daObjItaRope_c*)i_this;
fopAcM_RegisterCreateID(i_this, "Obj_ItaRope");
return a_this->create();
}
static actor_method_class l_daObjItaRope_Method = {
+2 -1
View File
@@ -356,7 +356,8 @@ static int daItemShield_Delete(daItemShield_c* i_this) {
}
static int daItemShield_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daItemShield_c, i_this, "ObjSShield");
daItemShield_c* a_this = (daItemShield_c*)i_this;
fopAcM_RegisterCreateID(i_this, "ObjSShield");
return a_this->create();
}
+4 -3
View File
@@ -539,13 +539,14 @@ static int daKey_Execute(daKey_c* i_this) {
}
static int daKey_Delete(daKey_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "ObjSKey");
return i_this->_delete();
}
static int daKey_Create(fopAc_ac_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
return ((daKey_c*)i_this)->create();
daKey_c* a_this = (daKey_c*)i_this;
fopAcM_RegisterCreateID(i_this, "ObjSKey");
return a_this->create();
}
static actor_method_class l_daKey_Method = {
+5 -5
View File
@@ -262,14 +262,14 @@ static int daSpinLift_Execute(daSpinLift_c* i_this) {
}
static int daSpinLift_Delete(daSpinLift_c* i_this) {
fpc_ProcID proc_id = fopAcM_GetID(i_this);
fopAcM_RegisterCreateID(i_this, "daSpinLift");
return i_this->MoveBGDelete();
}
static int daSpinLift_Create(fopAc_ac_c* a_this) {
daSpinLift_c* i_this = (daSpinLift_c*)a_this;
fpc_ProcID proc_id = fopAcM_GetID(a_this);
return i_this->create();
static int daSpinLift_Create(fopAc_ac_c* i_this) {
daSpinLift_c* a_this = (daSpinLift_c*)i_this;
fopAcM_RegisterDeleteID(i_this, "daSpinLift");
return a_this->create();
}
static actor_method_class l_daSpinLift_Method = {
+5 -5
View File
@@ -1180,14 +1180,14 @@ static int daObjSwChain_Execute(daObjSwChain_c* i_this) {
}
static int daObjSwChain_Delete(daObjSwChain_c* i_this) {
fpc_ProcID unused = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "SwChain");
return i_this->_delete();
}
static int daObjSwChain_Create(fopAc_ac_c* a_this) {
daObjSwChain_c* i_this = (daObjSwChain_c*)a_this;
fpc_ProcID unused = fopAcM_GetID(a_this);
return i_this->create1st();
static int daObjSwChain_Create(fopAc_ac_c* i_this) {
daObjSwChain_c* a_this = (daObjSwChain_c*)i_this;
fopAcM_RegisterCreateID(i_this, "SwChain");
return a_this->create1st();
}
static actor_method_class l_daObjSwChain_Method = {
+1 -1
View File
@@ -206,7 +206,7 @@ int daObjTks_c::CreateHeap() {
}
int daObjTks_c::Delete() {
fpc_ProcID id = fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this, "OBJ_TKS");
this->~daObjTks_c();
return 1;
}
+2 -1
View File
@@ -207,7 +207,8 @@ static int daTwGate_Delete(daTwGate_c* i_this) {
}
static int daTwGate_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daTwGate_c, i_this, "daTwGate");
daTwGate_c* a_this = (daTwGate_c*)i_this;
fopAcM_RegisterCreateID(i_this, "daTwGate");
return a_this->create();
}
+2 -1
View File
@@ -125,7 +125,8 @@ static int daObjVGnd_Delete(daObjVGnd_c* i_this) {
}
static int daObjVGnd_Create(fopAc_ac_c* i_this) {
fopAcM_RegisterCreateID(daObjVGnd_c, i_this, "Sample");
daObjVGnd_c* a_this = (daObjVGnd_c*)i_this;
fopAcM_RegisterCreateID(i_this, "Sample");
return a_this->create();
}
+2 -2
View File
@@ -196,13 +196,13 @@ static int daWtGate_Execute(daWtGate_c* i_this) {
}
static int daWtGate_Delete(daWtGate_c* i_this) {
const fpc_ProcID procID = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "daWtGate");
return i_this->MoveBGDelete();
}
static int daWtGate_Create(fopAc_ac_c* i_this) {
daWtGate_c* const waterGate = static_cast<daWtGate_c*>(i_this);
const fpc_ProcID procID = fopAcM_GetID(i_this);
fopAcM_RegisterCreateID(i_this, "daWtGate");
return waterGate->create();
}
+6 -5
View File
@@ -447,21 +447,22 @@ int daObjWStatue_c::_delete() {
return 1;
}
static int daObjWStatue_Draw(daObjWStatue_c * i_this) {
static int daObjWStatue_Draw(daObjWStatue_c* i_this) {
return i_this->draw();
}
static int daObjWStatue_Execute(daObjWStatue_c * i_this) {
static int daObjWStatue_Execute(daObjWStatue_c* i_this) {
return i_this->execute();
}
static int daObjWStatue_Delete(daObjWStatue_c * i_this) {
static int daObjWStatue_Delete(daObjWStatue_c* i_this) {
fopAcM_RegisterDeleteID(i_this, "ObjLife");
return i_this->_delete();
}
static int daObjWStatue_Create(fopAc_ac_c * i_this) {
fopAcM_RegisterCreateID(daObjWStatue_c, i_this, "ObjLife");
static int daObjWStatue_Create(fopAc_ac_c* i_this) {
daObjWStatue_c* a_this = (daObjWStatue_c*)i_this;
fopAcM_RegisterCreateID(i_this, "ObjLife");
return a_this->create();
}

Some files were not shown because too many files have changed in this diff Show More