mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-12-18 03:43:54 -05:00
Implement/match LegoAnimNodeData::SetName (#1154)
This commit is contained in:
parent
93c640a45f
commit
63fee4d11d
3 changed files with 11 additions and 6 deletions
|
@ -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*;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -152,7 +152,7 @@ class LegoAnimNodeData : public LegoTreeNodeData {
|
|||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue