From 556b16201ed63ae0085fec9e92b811f1f48017b2 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 9 Mar 2024 13:03:58 -0500 Subject: [PATCH] Implement/match LegoPartPresenter::ReadyTickle --- .../legoomni/src/video/legopartpresenter.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/src/video/legopartpresenter.cpp b/LEGO1/lego/legoomni/src/video/legopartpresenter.cpp index 76f7306a..a558c175 100644 --- a/LEGO1/lego/legoomni/src/video/legopartpresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legopartpresenter.cpp @@ -211,10 +211,25 @@ MxResult LegoPartPresenter::Read(MxDSChunk& p_chunk) return result; } -// STUB: LEGO1 0x1007deb0 +// FUNCTION: LEGO1 0x1007deb0 void LegoPartPresenter::ReadyTickle() { - // TODO + MxStreamChunk* chunk = m_subscriber->PeekData(); + + if (chunk != NULL && chunk->GetTime() <= m_action->GetElapsedTime()) { + ParseExtra(); + ProgressTickleState(e_starting); + + chunk = m_subscriber->PopData(); + MxResult result = Read(*chunk); + m_subscriber->FreeDataChunk(chunk); + + if (result == SUCCESS) { + Store(); + } + + EndAction(); + } } // FUNCTION: LEGO1 0x1007df20