mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Implement/match most of MxVideoPresenter (#280)
* Bootstrap MxMediaPresenter * Implement/match MxMediaPresenter::Tickle and related * Implement AppendChunk and Enable * Implement/match most of MxVideoPresenter * Add missing offset
This commit is contained in:

committed by
GitHub

parent
c626f18b03
commit
d8bf4aebf4
@@ -129,7 +129,7 @@ void MxMediaPresenter::StreamingTickle()
|
||||
else if (m_action->GetFlags() & MxDSAction::Flag_Looping) {
|
||||
AppendChunk(m_currentChunk);
|
||||
|
||||
if (!MxPresenter::IsEnabled()) {
|
||||
if (!IsEnabled()) {
|
||||
m_subscriber->FUN_100b8390(m_currentChunk);
|
||||
m_currentChunk = NULL;
|
||||
}
|
||||
@@ -141,7 +141,7 @@ void MxMediaPresenter::StreamingTickle()
|
||||
// OFFSET: LEGO1 0x100b5e10
|
||||
void MxMediaPresenter::RepeatingTickle()
|
||||
{
|
||||
if (MxPresenter::IsEnabled() && !m_currentChunk) {
|
||||
if (IsEnabled() && !m_currentChunk) {
|
||||
if (m_cursor)
|
||||
if (!m_cursor->Next(m_currentChunk))
|
||||
m_cursor->Next(m_currentChunk);
|
||||
@@ -173,7 +173,7 @@ void MxMediaPresenter::DoneTickle()
|
||||
// OFFSET: LEGO1 0x100b6030
|
||||
void MxMediaPresenter::Enable(MxBool p_enable)
|
||||
{
|
||||
if (MxPresenter::IsEnabled() != p_enable) {
|
||||
if (IsEnabled() != p_enable) {
|
||||
MxPresenter::Enable(p_enable);
|
||||
|
||||
if (p_enable) {
|
||||
|
Reference in New Issue
Block a user