Implement/match LegoPartPresenter::ReadyTickle (#644)

* Implement/match LegoPartPresenter::ReadyTickle

* Remove space
This commit is contained in:
Christian Semmler 2024-03-09 13:11:34 -05:00 committed by GitHub
parent 6fa4a0dbec
commit c62469fef4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,7 +141,6 @@ MxResult LegoPartPresenter::Read(MxDSChunk& p_chunk)
} }
for (i = 0; i < numROIs; i++) { for (i = 0; i < numROIs; i++) {
if (storage.Read(&roiNameLength, sizeof(roiNameLength)) != SUCCESS) { if (storage.Read(&roiNameLength, sizeof(roiNameLength)) != SUCCESS) {
goto done; goto done;
} }
@ -211,10 +210,25 @@ MxResult LegoPartPresenter::Read(MxDSChunk& p_chunk)
return result; return result;
} }
// STUB: LEGO1 0x1007deb0 // FUNCTION: LEGO1 0x1007deb0
void LegoPartPresenter::ReadyTickle() 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 // FUNCTION: LEGO1 0x1007df20