mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
implement LegoWorldPresenter::StartingTickle (#378)
This commit is contained in:
parent
bcb7bec68b
commit
4d7968c7af
2 changed files with 18 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue