Implement/match LegoAnimNodeData::SetName (#1154)

This commit is contained in:
Christian Semmler 2024-11-15 11:15:33 -07:00 committed by GitHub
parent 93c640a45f
commit 63fee4d11d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 6 deletions

View File

@ -408,7 +408,7 @@ void LegoCarBuildAnimPresenter::FUN_10079160()
root = m_anim->GetRoot();
data2 = (LegoAnimNodeData*) root->GetData();
destData->FUN_100a0360(data2->GetName());
destData->SetName(data2->GetName());
destNode->SetNumChildren(1);
children = new LegoTreeNode*;

View File

@ -497,11 +497,16 @@ LegoResult LegoAnimNodeData::Write(LegoStorage* p_storage)
return SUCCESS;
}
// STUB: LEGO1 0x100a0360
// STUB: BETA10 0x1017f1e5
void LegoAnimNodeData::FUN_100a0360(LegoChar* p_param)
// FUNCTION: LEGO1 0x100a0360
// FUNCTION: BETA10 0x1017f1e5
void LegoAnimNodeData::SetName(LegoChar* p_name)
{
// TODO
if (m_name != NULL) {
delete[] m_name;
}
m_name = new LegoChar[strlen(p_name) + 1];
strcpy(m_name, p_name);
}
// FUNCTION: LEGO1 0x100a03c0

View File

@ -152,7 +152,7 @@ public:
LegoResult Read(LegoStorage* p_storage) override; // vtable+0x04
LegoResult Write(LegoStorage* p_storage) override; // vtable+0x08
void FUN_100a0360(LegoChar* p_param);
void SetName(LegoChar* p_name);
LegoResult CreateLocalTransform(LegoFloat p_time, Matrix4& p_matrix);
LegoBool FUN_100a0990(LegoFloat p_time);