isle/LEGO1/mxdschunk.cpp
Joshua Peisach a31626cffb
MxDSAction/Chunk/MediaAction/Sound (#85)
* Match MxDSChunk ctor/dtor

* Push work on MxDSAction/MediaAction/Sound

* MxDSMediaAction constructor is matching up to a mov location

* Match MxDSSound constructor by adding the missing member

just four bytes in between them in ghidra.. isn't that enough for ghidra to justify a member variable?

* Match MxDSMediaAction constructor

Today's lesson: ecx suggests '1'
2023-07-15 23:51:11 -07:00

19 lines
334 B
C++

#include "mxdschunk.h"
// OFFSET: LEGO1 0x100be050
MxDSChunk::MxDSChunk()
{
this->m_length = 0;
this->m_pStuff = NULL;
this->m_buffer = -1;
this->m_long1FromHeader = 0;
this->m_long2FromHeader = 0;
}
// OFFSET: LEGO1 0x100be170
MxDSChunk::~MxDSChunk()
{
if ((this->m_length & 1) != 0) {
delete this->m_pStuff;
}
}