mirror of
https://github.com/isledecomp/isle.git
synced 2025-02-16 19:50:15 -05:00
fix LegoPathPresenter vtable (#427)
* fix LegoPathPresenter vtbl * Update legopathpresenter.cpp * Update legopathpresenter.cpp * fix override * Update legopathpresenter.cpp
This commit is contained in:
parent
99ee212213
commit
602ba30fae
2 changed files with 30 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue