Change interface of Destroy

This commit is contained in:
Christian Semmler 2023-10-14 08:56:29 -04:00
parent 016c04c47a
commit 82f3f36437
4 changed files with 5 additions and 5 deletions

View File

@ -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
}

View File

@ -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)

View File

@ -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;
}

View File

@ -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)