Add fopAcM_RegisterCreateID/fopAcM_RegisterDeleteID macros from TP decomp

This commit is contained in:
LagoLunatic
2026-05-10 16:11:54 -04:00
parent 70b8a14aa4
commit 928ff4f07b
4 changed files with 16 additions and 3 deletions
+6
View File
@@ -29,6 +29,12 @@
#define fopAcM_ct_Retail fopAcM_ct
#endif
#define fopAcM_RegisterDeleteID(i_this) \
fopAcM_GetID(i_this)
#define fopAcM_RegisterCreateID(i_this) \
fopAcM_GetID(i_this)
class J3DModelData;
class daItem_c;
+2 -1
View File
@@ -837,7 +837,7 @@ static BOOL daDoor10_IsDelete(daDoor10_c*) {
/* 00001CD4-00001E18 .text daDoor10_Delete__FP10daDoor10_c */
static BOOL daDoor10_Delete(daDoor10_c* i_this) {
fpc_ProcID proc = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this);
#if VERSION > VERSION_DEMO
if (i_this->heap != NULL)
@@ -867,6 +867,7 @@ static BOOL daDoor10_Delete(daDoor10_c* i_this) {
/* 00001E18-00001EA8 .text daDoor10_Create__FP10fopAc_ac_c */
static cPhs_State daDoor10_Create(fopAc_ac_c* a_this) {
fopAcM_RegisterCreateID(a_this);
fopAcM_ct(a_this, daDoor10_c);
return ((daDoor10_c*)a_this)->create();
}
+4 -1
View File
@@ -532,7 +532,8 @@ BOOL daNpc_Jb1_c::_execute() {
/* 00000FBC-00001054 .text _delete__11daNpc_Jb1_cFv */
BOOL daNpc_Jb1_c::_delete() {
// fopAcM_GetID(); mentioned in debug map
fopAcM_RegisterDeleteID(this);
dComIfG_resDeleteDemo(&mPhs, "Jb");
dKy_plight_cut(&field_0x7F8);
@@ -560,6 +561,8 @@ static BOOL CheckCreateHeap(fopAc_ac_c* i_this) {
/* 00001074-000011B8 .text _create__11daNpc_Jb1_cFv */
cPhs_State daNpc_Jb1_c::_create() {
fopAcM_RegisterCreateID(this);
static u32 a_size_tbl[] = {
0x000272E0
};
+4 -1
View File
@@ -682,7 +682,8 @@ BOOL daNpc_Km1_c::_execute() {
/* 00001808-0000188C .text _delete__11daNpc_Km1_cFv */
BOOL daNpc_Km1_c::_delete() {
fopAcM_GetID(this);
fopAcM_RegisterDeleteID(this);
dComIfG_resDeleteDemo(&field_0x6C4,"Km");
if(mpMorf != NULL){
@@ -705,6 +706,8 @@ static BOOL CheckCreateHeap(fopAc_ac_c* actor) {
/* 000018AC-00001A1C .text _create__11daNpc_Km1_cFv */
cPhs_State daNpc_Km1_c::_create() {
fopAcM_RegisterCreateID(this);
static int a_heap_size_tbl[] = {
0x272E0
};