mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
Change interface of Destroy
This commit is contained in:
parent
016c04c47a
commit
82f3f36437
@ -29,7 +29,7 @@ MxCore *LegoObjectFactory::Create(const char *p_name)
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x1000fb30 STUB
|
||||
void LegoObjectFactory::Destroy(void *p_object)
|
||||
void LegoObjectFactory::Destroy(MxCore *p_object)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@ class LegoObjectFactory : public MxObjectFactory
|
||||
public:
|
||||
LegoObjectFactory();
|
||||
virtual MxCore *Create(const char *p_name) override; // vtable 0x14
|
||||
virtual void Destroy(void *p_object) override; // vtable 0x18
|
||||
virtual void Destroy(MxCore *p_object) override; // vtable 0x18
|
||||
private:
|
||||
#define X(V) MxAtomId m_id##V;
|
||||
FOR_LEGOOBJECTFACTORY_OBJECTS(X)
|
||||
|
||||
@ -41,7 +41,7 @@ MxCore *MxObjectFactory::Create(const char *p_name)
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b1a30
|
||||
void MxObjectFactory::Destroy(void *p_object)
|
||||
void MxObjectFactory::Destroy(MxCore *p_object)
|
||||
{
|
||||
delete (MxCore*)p_object;
|
||||
delete p_object;
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ class MxObjectFactory : public MxCore
|
||||
}
|
||||
|
||||
virtual MxCore *Create(const char *p_name); // vtable 0x14
|
||||
virtual void Destroy(void *p_object); // vtable 0x18
|
||||
virtual void Destroy(MxCore *p_object); // vtable 0x18
|
||||
private:
|
||||
#define X(V) MxAtomId m_id##V;
|
||||
FOR_MXOBJECTFACTORY_OBJECTS(X)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user