mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
Resolve OtherAppend/Append
This commit is contained in:
parent
615e1455b2
commit
adf7028832
@ -30,7 +30,7 @@ void MxDSSelectAction::CopyFrom(MxDSSelectAction& p_dsSelectAction)
|
|||||||
MxStringListCursor cursor(p_dsSelectAction.m_unk0xac);
|
MxStringListCursor cursor(p_dsSelectAction.m_unk0xac);
|
||||||
MxString string;
|
MxString string;
|
||||||
while (cursor.Next(string))
|
while (cursor.Next(string))
|
||||||
this->m_unk0xac->OtherAppend(string);
|
this->m_unk0xac->Append(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100cbd50
|
// OFFSET: LEGO1 0x100cbd50
|
||||||
@ -109,7 +109,7 @@ void MxDSSelectAction::Deserialize(char** p_source, MxS16 p_unk24)
|
|||||||
if (!strcmp(string.GetData(), *p_source))
|
if (!strcmp(string.GetData(), *p_source))
|
||||||
index = i;
|
index = i;
|
||||||
|
|
||||||
this->m_unk0xac->OtherAppend(*p_source);
|
this->m_unk0xac->Append(*p_source);
|
||||||
*p_source += strlen(*p_source) + 1;
|
*p_source += strlen(*p_source) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -72,8 +72,7 @@ class MxList : protected MxListParent<T> {
|
|||||||
|
|
||||||
virtual ~MxList();
|
virtual ~MxList();
|
||||||
|
|
||||||
void Append(T);
|
void Append(T p_obj) { _InsertEntry(p_obj, this->m_last, NULL); };
|
||||||
void OtherAppend(T p_obj) { _InsertEntry(p_obj, this->m_last, NULL); };
|
|
||||||
void DeleteAll();
|
void DeleteAll();
|
||||||
MxU32 GetCount() { return this->m_count; }
|
MxU32 GetCount() { return this->m_count; }
|
||||||
void SetDestroy(void (*p_customDestructor)(T)) { this->m_customDestructor = p_customDestructor; }
|
void SetDestroy(void (*p_customDestructor)(T)) { this->m_customDestructor = p_customDestructor; }
|
||||||
|
|||||||
@ -87,7 +87,7 @@ void MxRegion::vtable18(MxRect32& p_rect)
|
|||||||
|
|
||||||
if (rectCopy.m_left < rectCopy.m_right && rectCopy.m_top < rectCopy.m_bottom) {
|
if (rectCopy.m_left < rectCopy.m_right && rectCopy.m_top < rectCopy.m_bottom) {
|
||||||
MxRegionTopBottom* newTopBottom = new MxRegionTopBottom(rectCopy);
|
MxRegionTopBottom* newTopBottom = new MxRegionTopBottom(rectCopy);
|
||||||
m_list->OtherAppend(newTopBottom);
|
m_list->Append(newTopBottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_rect.m_left = m_rect.m_left <= p_rect.m_left ? m_rect.m_left : p_rect.m_left;
|
m_rect.m_left = m_rect.m_left <= p_rect.m_left ? m_rect.m_left : p_rect.m_left;
|
||||||
@ -147,7 +147,7 @@ void MxRegionTopBottom::FUN_100c5280(MxS32 p_left, MxS32 p_right)
|
|||||||
|
|
||||||
if (!a.HasMatch()) {
|
if (!a.HasMatch()) {
|
||||||
MxRegionLeftRight* copy = new MxRegionLeftRight(p_left, p_right);
|
MxRegionLeftRight* copy = new MxRegionLeftRight(p_left, p_right);
|
||||||
m_leftRightList->OtherAppend(copy);
|
m_leftRightList->Append(copy);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (p_left > leftRight->m_left)
|
if (p_left > leftRight->m_left)
|
||||||
@ -173,7 +173,7 @@ void MxRegionTopBottom::FUN_100c5280(MxS32 p_left, MxS32 p_right)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
MxRegionLeftRight* copy = new MxRegionLeftRight(p_left, p_right);
|
MxRegionLeftRight* copy = new MxRegionLeftRight(p_left, p_right);
|
||||||
m_leftRightList->OtherAppend(copy);
|
m_leftRightList->Append(copy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,7 @@ typedef MxListCursorChild<MxString> MxStringListCursor;
|
|||||||
// MxList<MxString>::~MxList<MxString>
|
// MxList<MxString>::~MxList<MxString>
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100cbb40 TEMPLATE
|
// OFFSET: LEGO1 0x100cbb40 TEMPLATE
|
||||||
// MxList<MxString>::OtherAppend
|
// MxList<MxString>::Append
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100cc2d0 TEMPLATE
|
// OFFSET: LEGO1 0x100cc2d0 TEMPLATE
|
||||||
// MxList<MxString>::_InsertEntry
|
// MxList<MxString>::_InsertEntry
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user