Debug Actor Work: d_a_andsw - d_a_obj_ito#2761
Debug Actor Work: d_a_andsw - d_a_obj_ito#2761carter-ktb21 wants to merge 24 commits intozeldaret:mainfrom
Conversation
Report for Shield (2f2f37a - c48a4ad)📈 Matched code: 6.50% (+0.00%, +396 bytes) ✅ 3 new matches
📈 14 improvements in unmatched functions
📉 6 regressions in unmatched functions
Report for GZ2J01 (2f2f37a - c48a4ad)[!] Report not found. Did the build succeed? Report for RZDE01_00 (2f2f37a - c48a4ad)📈 Matched code: 34.25% (+0.03%, +3000 bytes) ✅ 14 new matches
💔 1 broken match
📈 9 improvements in unmatched functions
📉 2 regressions in unmatched functions
Report for GZ2E01 (2f2f37a - c48a4ad)No changesReport for ShieldD (2f2f37a - c48a4ad)[!] Report not found. Did the build succeed? Report for GZ2P01 (2f2f37a - c48a4ad)[!] Report not found. Did the build succeed? |
src/d/actor/d_a_bg_obj.cpp
Outdated
| // static const char* dummy() { | ||
| // return "spec.dat"; | ||
| // } |
There was a problem hiding this comment.
if this isnt needed then it can be removed
include/d/actor/d_a_bg_obj.h
Outdated
| /* 0x5A8 */ J3DModel* mpModelMtx[2][2]; | ||
| /* 0x5B8 */ mDoExt_btkAnm* mpBtkAnmMtx[2][2]; | ||
| /* 0x5C8 */ mDoExt_brkAnm* mpBrkAnmMtx[2][2]; |
There was a problem hiding this comment.
i dont really like the mtx naming here as it implies its a Mtx type when its not
src/d/actor/d_a_door_dbdoor00.cpp
Outdated
| u8 frontOption = door_param2_c::getFrontOption(this); | ||
| u8 backOption = door_param2_c::getBackOption(this); | ||
| if (frontOption != 0) { | ||
| OS_REPORT_ERROR("両開き押しドア:表のオプション指定があります!<%d>\n", frontOption); // Double-opening push door: There are options specified on the front! <%d> |
There was a problem hiding this comment.
in general i prefer these translation comments on the line above so that we dont get these super long lines
src/d/actor/d_a_door_shutter.cpp
Outdated
| dComIfGs_onSwitch(swBit, 0xFFFFFFFF); | ||
| dComIfGp_setItemKeyNumCount(0xFFFFFFFF); |
src/d/actor/d_a_hitobj.cpp
Outdated
| i_this->field_0x572--; | ||
| i_this->field_0x5b0.SetC(i_this->current.pos); | ||
| dComIfG_Ccsp()->Set(&i_this->field_0x5b0); | ||
| fopAc_ac_c* a_this = (fopAc_ac_c*)i_this; |
There was a problem hiding this comment.
in general we're using actor instead of a_this nowadays as it seems to be closer to what they did originally
src/d/actor/d_a_passer_mng.cpp
Outdated
| daPasserMng_Attr_c& daPasserMng_Attr_c::operator=(const daPasserMng_Attr_c& attr) { | ||
| appearance_interval = attr.appearance_interval; | ||
| npc_type = attr.npc_type; | ||
| return *this; | ||
| } |
There was a problem hiding this comment.
does this need to exist or can it be compiler generated?
src/d/d_a_obj.cpp
Outdated
| #include "SSystem/SComponent/c_math.h" | ||
| #include "d/actor/d_a_player.h" | ||
| #include "d/d_com_inf_game.h" | ||
| #include "dol2asm.h" |
There was a problem hiding this comment.
if macros from here are needed to match, i'd prefer writing the expanded form out and adding a fake match since ideally we want to remove all dol2asm or dtk specific references in source code
src/d/d_a_obj.cpp
Outdated
| } | ||
|
|
||
| if (i >= 16) { | ||
| OS_REPORT_ERROR("汎用オブジェノードバッファがパンク(%s %d)\n", "d_a_obj.cpp", 872); // Generic object node buffer full (%s %d) |
09ae7e4 to
063242a
Compare
|
in addition to the other cleanup comments that need to be addressed, it'd be good to try to fix that broken match on wii since it was 100% before the changes here |
No description provided.