1
0
Fork 0
mirror of https://github.com/isledecomp/isle.git synced 2025-03-31 09:00:07 -04:00

LegoTexturePresenter destructor and AddToManager ()

* LegoTexturePresenter destructor and AddToManager

* clang-format
This commit is contained in:
Joshua Peisach 2023-11-12 14:21:22 -05:00 committed by GitHub
parent 888205c1fa
commit 8b2e7a92e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 @@ public:
{
return !strcmp(name, LegoTexturePresenter::ClassName()) || MxMediaPresenter::IsA(name);
}
virtual MxResult AddToManager() override; // vtable+0x34
};
#endif // LEGOTEXTUREPRESENTER_H