Implement/match MxMediaManager::Tickle

This commit is contained in:
Christian Semmler 2023-09-17 06:41:06 -04:00
parent b819657bd8
commit 7857355b0c
2 changed files with 15 additions and 2 deletions

View File

@ -83,7 +83,8 @@ class MxListCursor : public MxCore
MxBool Find(T *p_obj);
void Detach();
MxBool Next(T*& p_obj);
void Reset() { m_match = NULL; }
private:
MxList<T> *m_list;
MxListEntry<T> *m_match;

View File

@ -27,9 +27,21 @@ MxResult MxMediaManager::Init()
return SUCCESS;
}
// OFFSET: LEGO1 0x100b8790 STUB
// OFFSET: LEGO1 0x100b8790
MxResult MxMediaManager::Tickle()
{
MxAutoLocker lock(&this->m_criticalSection);
MxPresenter *presenter;
MxPresenterListCursor cursor(this->m_presenters);
while (cursor.Next(presenter))
presenter->Tickle();
cursor.Reset();
while (cursor.Next(presenter))
presenter->VTable0x4c();
return SUCCESS;
}