mirror of https://github.com/zeldaret/tp.git
Fixes
This commit is contained in:
parent
dc815a9278
commit
d9183b121a
|
|
@ -15,7 +15,7 @@ public:
|
|||
|
||||
/* 0x568 */ u8 field_0x568;
|
||||
/* 0x569 */ u8 field_0x569;
|
||||
/* 0x56B */ u16 field_0x56b;
|
||||
/* 0x56A */ u16 field_0x56a;
|
||||
};
|
||||
|
||||
class daTagPoFire_HIO_c : public mDoHIO_entry_c {
|
||||
|
|
|
|||
|
|
@ -23,20 +23,20 @@ int daCowdoor_c::Create() {
|
|||
}
|
||||
|
||||
/* 80BCCBDC-80BCCBE0 -00001 0004+00 3/3 0/0 0/0 .data l_arcName */
|
||||
static const char* l_arcName[] = {"A_UHDoor"};
|
||||
static const char* l_arcName = "A_UHDoor";
|
||||
|
||||
/* 80BCCBE0-80BCCBE4 -00001 0004+00 1/1 0/0 0/0 .data l_bmdName */
|
||||
static const char* l_bmdName[] = {"A_UHDoor.bmd"};
|
||||
static const char* l_bmdName = "A_UHDoor.bmd";
|
||||
|
||||
/* 80BCC8C4-80BCC93C 000144 0078+00 1/0 0/0 0/0 .text CreateHeap__11daCowdoor_cFv */
|
||||
int daCowdoor_c::CreateHeap() {
|
||||
field_0x5a8 = mDoExt_J3DModel__create(
|
||||
(J3DModelData*)dComIfG_getObjectRes(l_arcName[0], l_bmdName[0]), 0x80000, 0x11000084);
|
||||
(J3DModelData*)dComIfG_getObjectRes(l_arcName, l_bmdName), 0x80000, 0x11000084);
|
||||
return (field_0x5a8 != NULL) ? 1 : 0;
|
||||
}
|
||||
|
||||
/* 80BCCBE4-80BCCBE8 -00001 0004+00 1/1 0/0 0/0 .data l_dzbName */
|
||||
static const char* l_dzbName[] = {"A_UHDoor.dzb"};
|
||||
static const char* l_dzbName = "A_UHDoor.dzb";
|
||||
|
||||
/* 80BCC93C-80BCCA1C 0001BC 00E0+00 1/1 0/0 0/0 .text create__11daCowdoor_cFv */
|
||||
int daCowdoor_c::create() {
|
||||
|
|
@ -44,10 +44,10 @@ int daCowdoor_c::create() {
|
|||
new (this) daCowdoor_c();
|
||||
fopAcM_OnCondition(this, 8);
|
||||
}
|
||||
int phase = dComIfG_resLoad(&field_0x5a0, l_arcName[0]);
|
||||
int phase = dComIfG_resLoad(&field_0x5a0, l_arcName);
|
||||
if (phase == cPhs_COMPLEATE_e) {
|
||||
phase =
|
||||
MoveBGCreate(l_arcName[0], dComIfG_getObjctResName2Index(l_arcName[0], l_dzbName[0]),
|
||||
MoveBGCreate(l_arcName, dComIfG_getObjctResName2Index(l_arcName, l_dzbName),
|
||||
dBgS_MoveBGProc_TypicalRotY, 0x4000, NULL);
|
||||
if (phase == cPhs_ERROR_e) {
|
||||
return phase;
|
||||
|
|
@ -75,7 +75,7 @@ int daCowdoor_c::Draw() {
|
|||
|
||||
/* 80BCCAEC-80BCCB20 00036C 0034+00 1/0 0/0 0/0 .text Delete__11daCowdoor_cFv */
|
||||
int daCowdoor_c::Delete() {
|
||||
dComIfG_resDelete(&field_0x5a0, l_arcName[0]);
|
||||
dComIfG_resDelete(&field_0x5a0, l_arcName);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,11 +33,11 @@ int daObjTMoon_c::Create() {
|
|||
}
|
||||
|
||||
/* 80D12FA0-80D12FA4 -00001 0004+00 3/3 0/0 0/0 .data l_arcName */
|
||||
static const char* l_arcName[] = {"A_TMoon"};
|
||||
static const char* l_arcName = "A_TMoon";
|
||||
|
||||
/* 80D12C9C-80D12D0C 00017C 0070+00 1/1 0/0 0/0 .text CreateHeap__12daObjTMoon_cFv */
|
||||
bool daObjTMoon_c::CreateHeap() {
|
||||
field_0x570 = mDoExt_J3DModel__create((J3DModelData*)dComIfG_getObjectRes(l_arcName[0], 3),
|
||||
field_0x570 = mDoExt_J3DModel__create((J3DModelData*)dComIfG_getObjectRes(l_arcName, 3),
|
||||
0x80000, 0x11000084);
|
||||
return field_0x570 != NULL;
|
||||
}
|
||||
|
|
@ -48,7 +48,7 @@ int daObjTMoon_c::create() {
|
|||
new (this) daObjTMoon_c();
|
||||
fopAcM_OnCondition(this, 8);
|
||||
}
|
||||
int phase = dComIfG_resLoad(&field_0x568, l_arcName[0]);
|
||||
int phase = dComIfG_resLoad(&field_0x568, l_arcName);
|
||||
if (phase == cPhs_COMPLEATE_e) {
|
||||
if (!fopAcM_entrySolidHeap(this, (heapCallbackFunc)CheckCreateHeap, 0x880)) {
|
||||
return cPhs_ERROR_e;
|
||||
|
|
@ -85,7 +85,7 @@ int daObjTMoon_c::draw() {
|
|||
|
||||
/* 80D12EDC-80D12F10 0003BC 0034+00 1/1 0/0 0/0 .text _delete__12daObjTMoon_cFv */
|
||||
int daObjTMoon_c::_delete() {
|
||||
dComIfG_resDelete(&field_0x568, l_arcName[0]);
|
||||
dComIfG_resDelete(&field_0x568, l_arcName);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue