mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-22 15:51:16 +00:00
Match MxDSChunk ctor/dtor
This commit is contained in:
parent
67115e32d3
commit
c421680cec
@ -1,13 +1,19 @@
|
|||||||
#include "mxdschunk.h"
|
#include "mxdschunk.h"
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100be050 STUB
|
// OFFSET: LEGO1 0x100be050
|
||||||
MxDSChunk::MxDSChunk()
|
MxDSChunk::MxDSChunk()
|
||||||
{
|
{
|
||||||
// TODO
|
this->m_length = 0;
|
||||||
|
this->m_pStuff = NULL;
|
||||||
|
this->m_buffer = -1;
|
||||||
|
this->m_long1FromHeader = 0;
|
||||||
|
this->m_long2FromHeader = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100be170 STUB
|
// OFFSET: LEGO1 0x100be170
|
||||||
MxDSChunk::~MxDSChunk()
|
MxDSChunk::~MxDSChunk()
|
||||||
{
|
{
|
||||||
// TODO
|
if ((this->m_length & 1) != 0) {
|
||||||
|
delete this->m_pStuff;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,11 @@
|
|||||||
#ifndef MXDSCHUNK_H
|
#ifndef MXDSCHUNK_H
|
||||||
#define MXDSCHUNK_H
|
#define MXDSCHUNK_H
|
||||||
|
|
||||||
#include "mxcore.h"
|
|
||||||
|
|
||||||
|
#include "mxcore.h"
|
||||||
|
#include "mxtypes.h"
|
||||||
|
|
||||||
|
// VTABLE 0x100dc7f8
|
||||||
class MxDSChunk : public MxCore
|
class MxDSChunk : public MxCore
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -21,6 +24,13 @@ class MxDSChunk : public MxCore
|
|||||||
{
|
{
|
||||||
return !strcmp(name, MxDSChunk::ClassName()) || MxCore::IsA(name);
|
return !strcmp(name, MxDSChunk::ClassName()) || MxCore::IsA(name);
|
||||||
}
|
}
|
||||||
|
private:
|
||||||
|
MxS16 m_length; // 0x8
|
||||||
|
MxLong m_buffer; // 0xc
|
||||||
|
MxLong m_long1FromHeader; // 0x10
|
||||||
|
MxLong m_long2FromHeader; // 0x14
|
||||||
|
void* m_pStuff; // 0x18
|
||||||
|
void* m_pSomething; // 0x1c
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MXDSCHUNK_H
|
#endif // MXDSCHUNK_H
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user