mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 07:28:00 -05:00
lego: match GetClassName/IsClass (#48)
This commit is contained in:
parent
64d2b9e02b
commit
9990d0a2b7
4 changed files with 20 additions and 31 deletions
|
@ -68,18 +68,6 @@ long LegoOmni::Notify(MxParam &p)
|
|||
return 0;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10058aa0
|
||||
const char *LegoOmni::GetClassName() const
|
||||
{
|
||||
return "LegoOmni";
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10058ab0
|
||||
MxBool LegoOmni::IsClass(const char *name) const
|
||||
{
|
||||
return strcmp("LegoOmni", name) == 0;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10058bd0
|
||||
void LegoOmni::Init()
|
||||
{
|
||||
|
|
|
@ -30,8 +30,15 @@ class LegoOmni : public MxOmni
|
|||
virtual ~LegoOmni(); // vtable+00
|
||||
|
||||
virtual long Notify(MxParam &p); // vtable+04
|
||||
virtual const char *GetClassName() const; // vtable+0c
|
||||
virtual MxBool IsClass(const char *name) const; // vtable+10;
|
||||
|
||||
// OFFSET: LEGO1 0x10058aa0
|
||||
inline virtual const char *GetClassName() const { return "LegoOmni"; }; // vtable+0c
|
||||
|
||||
// OFFSET: LEGO1 0x10058ab0
|
||||
inline virtual MxBool IsClass(const char *name) const {
|
||||
return !strcmp(name, LegoOmni::GetClassName()) || MxOmni::IsClass(name);
|
||||
}; // vtable+10;
|
||||
|
||||
virtual void Init(); // vtable+14
|
||||
virtual MxResult Create(MxOmniCreateParam &p); // vtable+18
|
||||
virtual void Destroy(); // vtable+1c
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#include "mxcore.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
// 0x1010141c
|
||||
unsigned int g_mxcoreCount = 0;
|
||||
|
||||
|
@ -27,16 +25,4 @@ long MxCore::Notify(MxParam &p)
|
|||
long MxCore::Tickle()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100144c0
|
||||
const char *MxCore::GetClassName() const
|
||||
{
|
||||
return "MxCore";
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100140d0
|
||||
MxBool MxCore::IsClass(const char *name) const
|
||||
{
|
||||
return strcmp(name, "MxCore") == 0;
|
||||
}
|
||||
}
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef MXCORE_H
|
||||
#define MXCORE_H
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "mxbool.h"
|
||||
|
||||
class MxParam;
|
||||
|
@ -12,8 +14,14 @@ class MxCore
|
|||
__declspec(dllexport) virtual ~MxCore(); // vtable+00
|
||||
__declspec(dllexport) virtual long Notify(MxParam &p); // vtable+04
|
||||
virtual long Tickle(); // vtable+08
|
||||
virtual const char *GetClassName() const; // vtable+0c
|
||||
virtual MxBool IsClass(const char *name) const; // vtable+10
|
||||
|
||||
// OFFSET: LEGO1 0x100144c0
|
||||
inline virtual const char *GetClassName() const { return "MxCore"; }; // vtable+0c
|
||||
|
||||
// OFFSET: LEGO1 0x100140d0
|
||||
inline virtual MxBool IsClass(const char *name) const {
|
||||
return !strcmp(name, MxCore::GetClassName());
|
||||
}; // vtable+10
|
||||
|
||||
private:
|
||||
unsigned int m_id;
|
||||
|
|
Loading…
Reference in a new issue