Implement/match MxMediaManager::Tickle (#127)

* Implement/match MxMediaManager::Tickle

* Remove space
This commit is contained in:
Christian Semmler 2023-09-17 17:10:38 -04:00 committed by GitHub
parent b819657bd8
commit c67e537508
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View file

@ -83,6 +83,7 @@ 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;

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;
}