implement LegoWorldPresenter::StartingTickle (#378)

This commit is contained in:
Misha 2023-12-27 16:05:21 -05:00 committed by GitHub
parent bcb7bec68b
commit 4d7968c7af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View file

@ -80,7 +80,7 @@ void LegoVideoManager::MoveCursor(MxS32 p_cursorX, MxS32 p_cursorY)
MxResult LegoVideoManager::Tickle()
{
// TODO
return FAILURE;
return MxVideoManager::Tickle();
}
// STUB: LEGO1 0x1007c080

View file

@ -99,9 +99,25 @@ void LegoWorldPresenter::ReadyTickle()
m_currentTickleState = TickleState_Starting;
}
// STUB: LEGO1 0x10066ac0
// FUNCTION: LEGO1 0x10066ac0
void LegoWorldPresenter::StartingTickle()
{
if (m_action->IsA("MxDSSerialAction")) {
MxPresenter* presenter = *m_list.begin();
if (presenter->GetCurrentTickleState() == TickleState_Idle) {
presenter->SetTickleState(TickleState_Ready);
}
}
else {
for (MxCompositePresenterList::iterator it = m_list.begin(); it != m_list.end(); it++) {
if ((*it)->GetCurrentTickleState() == TickleState_Idle) {
(*it)->SetTickleState(TickleState_Ready);
}
}
}
m_previousTickleStates |= 1 << (unsigned char) m_currentTickleState;
m_currentTickleState = TickleState_Streaming;
}
// STUB: LEGO1 0x10067a70