mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
Add scalar ddtor to verify inline destructor
This commit is contained in:
parent
2fbe91aaa5
commit
3137494be8
@ -204,7 +204,13 @@ class LightImpl : public Light {
|
|||||||
class MeshImpl : public Mesh {
|
class MeshImpl : public Mesh {
|
||||||
public:
|
public:
|
||||||
MeshImpl() : m_data(0) {}
|
MeshImpl() : m_data(0) {}
|
||||||
~MeshImpl();
|
~MeshImpl()
|
||||||
|
{
|
||||||
|
if (m_data) {
|
||||||
|
delete m_data;
|
||||||
|
m_data = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
virtual void* ImplementationDataPtr();
|
virtual void* ImplementationDataPtr();
|
||||||
|
|
||||||
|
|||||||
@ -7,15 +7,6 @@ DECOMP_SIZE_ASSERT(D3DRMVERTEX, 0x24);
|
|||||||
DECOMP_SIZE_ASSERT(Mesh, 0x4);
|
DECOMP_SIZE_ASSERT(Mesh, 0x4);
|
||||||
DECOMP_SIZE_ASSERT(MeshImpl, 0x8);
|
DECOMP_SIZE_ASSERT(MeshImpl, 0x8);
|
||||||
|
|
||||||
// Inlined only
|
|
||||||
MeshImpl::~MeshImpl()
|
|
||||||
{
|
|
||||||
if (m_data) {
|
|
||||||
free(m_data);
|
|
||||||
m_data = NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100a3ed0
|
// OFFSET: LEGO1 0x100a3ed0
|
||||||
void* MeshImpl::ImplementationDataPtr()
|
void* MeshImpl::ImplementationDataPtr()
|
||||||
{
|
{
|
||||||
@ -39,6 +30,9 @@ Result MeshImpl::SetColor(float p_r, float p_g, float p_b, float p_a)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x100a3d80 TEMPLATE
|
||||||
|
// TglImpl::MeshImpl::`scalar deleting destructor'
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100a3f50
|
// OFFSET: LEGO1 0x100a3f50
|
||||||
Result MeshImpl::SetTexture(const Texture* p_texture)
|
Result MeshImpl::SetTexture(const Texture* p_texture)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user