implement misc presenter functions (#695)

* implement misc presenter functions

* style/spacing

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Misha
2024-03-19 11:07:11 -04:00
committed by GitHub
parent fd1b371864
commit 277957f0d5
3 changed files with 41 additions and 7 deletions

View File

@@ -114,11 +114,24 @@ MxResult LegoTexturePresenter::Store()
return SUCCESS;
}
// STUB: LEGO1 0x1004fc60
// FUNCTION: LEGO1 0x1004fc60
MxResult LegoTexturePresenter::PutData()
{
// TODO
return FAILURE;
MxResult result = SUCCESS;
if (MxPresenter::IsEnabled() && m_currentChunk != NULL) {
result = Read(*m_currentChunk);
if (result == SUCCESS) {
Store();
}
if (m_currentTickleState == e_streaming) {
m_subscriber->FreeDataChunk(m_currentChunk);
}
m_currentChunk = NULL;
}
return result;
}
// FUNCTION: LEGO1 0x1004fcb0