LegoTexturePresenter destructor and AddToManager

This commit is contained in:
Joshua Peisach 2023-11-12 13:33:15 -05:00
parent 04b503c79f
commit 961fa04f0d
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
2 changed files with 14 additions and 2 deletions

View File

@ -1,7 +1,17 @@
#include "legotexturepresenter.h"
// OFFSET: LEGO1 0x1004eb40 STUB
#include "legoomni.h"
#include "legovideomanager.h"
// OFFSET: LEGO1 0x1004eb40
LegoTexturePresenter::~LegoTexturePresenter()
{
// TODO
VideoManager()->RemovePresenter(*this);
}
// OFFSET: LEGO1 0x1004ebb0
MxResult LegoTexturePresenter::AddToManager()
{
VideoManager()->AddPresenter(*this);
return SUCCESS;
}

View File

@ -21,6 +21,8 @@ class LegoTexturePresenter : public MxMediaPresenter {
{
return !strcmp(name, LegoTexturePresenter::ClassName()) || MxMediaPresenter::IsA(name);
}
virtual MxResult AddToManager() override; // vtable+0x34
};
#endif // LEGOTEXTUREPRESENTER_H