lego1: fix/match some ClassName functions (#60)

This commit is contained in:
Christian Semmler 2023-06-29 18:05:45 +02:00 committed by GitHub
parent 566e107290
commit 6761345c8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 7 deletions

View file

@ -24,7 +24,7 @@ class LegoAnimationManager : public MxCore
// OFFSET: LEGO1 0x1005ec90
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
{
return !strcmp(name, LegoAnimationManager::ClassName()) || MxCore::IsA(name);
return !strcmp(name, ClassName()) || MxCore::IsA(name);
}
__declspec(dllexport) static void configureLegoAnimationManager(int param_1);

View file

@ -21,7 +21,7 @@ class LegoCameraController : public MxCore
// OFFSET: LEGO1 0x10011ed0
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
{
return !strcmp(name, LegoCameraController::ClassName()) || MxCore::IsA(name);
return !strcmp(name, ClassName()) || MxCore::IsA(name);
}
};

View file

@ -20,7 +20,7 @@ class LegoHideAnimPresenter : public LegoLoopingAnimPresenter
// OFFSET: LEGO1 0x1006d890
inline MxBool IsA(const char *name) const override // vtable+0x10
{
return !strcmp(name, LegoHideAnimPresenter::ClassName()) || LegoAnimPresenter::IsA(name);
return !strcmp(name, ClassName()) || LegoAnimPresenter::IsA(name);
}
private:

View file

@ -19,7 +19,7 @@ class LegoLocomotionAnimPresenter : public LegoLoopingAnimPresenter
// OFFSET: LEGO1 0x1006ce60
inline MxBool IsA(const char *name) const override // vtable+0x10
{
return !strcmp(name, LegoLocomotionAnimPresenter::ClassName()) || LegoLoopingAnimPresenter::IsA(name);
return !strcmp(name, ClassName()) || LegoLoopingAnimPresenter::IsA(name);
}
private:

View file

@ -18,7 +18,7 @@ class LegoLoopingAnimPresenter : public LegoAnimPresenter
// OFFSET: LEGO1 0x1000c9b0
inline MxBool IsA(const char *name) const override // vtable+0x10
{
return !strcmp(name, LegoLoopingAnimPresenter::ClassName()) || LegoAnimPresenter::IsA(name);
return !strcmp(name, ClassName()) || LegoAnimPresenter::IsA(name);
}
};

View file

@ -32,7 +32,7 @@ class LegoNavController : public MxCore
// OFFSET: LEGO1 0x10054b90
inline MxBool IsA(const char *name) const override // vtable+0x10
{
return !strcmp(name, LegoNavController::ClassName()) || MxCore::IsA(name);
return !strcmp(name, ClassName()) || MxCore::IsA(name);
}
void SetControlMax(int p_hMax, int p_vMax);

View file

@ -21,7 +21,7 @@ class LegoPalettePresenter : public MxVideoPresenter
// OFFSET: LEGO1 0x10079f40
inline MxBool IsA(const char *name) const override // vtable+0x10
{
return !strcmp(name, LegoPalettePresenter::ClassName()) || MxVideoPresenter::IsA(name);
return !strcmp(name, ClassName()) || MxVideoPresenter::IsA(name);
}
private:

View file

@ -6,7 +6,18 @@
// VTABLE 0x100dd100
class MxStreamProvider : public MxCore
{
public:
// OFFSET: LEGO1 0x100d07e0
inline virtual const char *ClassName() const override // vtable+0x0c
{
return "MxStreamProvider";
}
// OFFSET: LEGO1 0x100d07f0
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
{
return !strcmp(name, MxStreamProvider::ClassName()) || MxCore::IsA(name);
}
};
#endif // MXSTREAMPROVIDER_H