fix LegoPathPresenter vtable (#427)

* fix LegoPathPresenter vtbl

* Update legopathpresenter.cpp

* Update legopathpresenter.cpp

* fix override

* Update legopathpresenter.cpp
This commit is contained in:
Misha 2024-01-12 17:22:42 -05:00 committed by GitHub
parent 99ee212213
commit 602ba30fae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View file

@ -8,6 +8,7 @@
class LegoPathPresenter : public MxMediaPresenter {
public:
LegoPathPresenter();
virtual ~LegoPathPresenter() override;
// FUNCTION: LEGO1 0x100449a0
inline const char* ClassName() const override // vtable+0xc
@ -22,6 +23,8 @@ public:
return !strcmp(p_name, LegoPathPresenter::ClassName()) || MxMediaPresenter::IsA(p_name);
}
virtual void ReadyTickle() override; // vtable+0x18
virtual void StreamingTickle() override; // vtable+0x20
virtual void RepeatingTickle() override; // vtable+0x24
virtual void ParseExtra() override; // vtable+0x30
virtual MxResult AddToManager() override; // vtable+0x34

View file

@ -17,6 +17,12 @@ void LegoPathPresenter::Init()
{
}
// FUNCTION: LEGO1 0x10044ac0
LegoPathPresenter::~LegoPathPresenter()
{
Destroy(TRUE);
}
// FUNCTION: LEGO1 0x10044b40
MxResult LegoPathPresenter::AddToManager()
{
@ -51,6 +57,27 @@ void LegoPathPresenter::Destroy()
Destroy(FALSE);
}
// STUB: LEGO1 0x10044c20
void LegoPathPresenter::ReadyTickle()
{
// TODO
ProgressTickleState(TickleState_Starting); // Allow initialization process to continue
}
// FUNCTION: LEGO1 0x10044d00
void LegoPathPresenter::StreamingTickle()
{
MxStreamChunk* chunk = m_subscriber->NextChunk();
if (chunk) {
if (chunk->GetFlags() & MxStreamChunk::Flag_End) {
ProgressTickleState(TickleState_Repeating);
}
m_subscriber->DestroyChunk(chunk);
}
}
// FUNCTION: LEGO1 0x10044d40
void LegoPathPresenter::RepeatingTickle()
{