mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 09:54:18 +00:00
implement misc presenter functions (#695)
* implement misc presenter functions * style/spacing --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
@@ -37,10 +37,22 @@ MxResult LegoPartPresenter::AddToManager()
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1007c9d0
|
||||
// FUNCTION: LEGO1 0x1007c9d0
|
||||
void LegoPartPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
// TODO
|
||||
m_criticalSection.Enter();
|
||||
VideoManager()->UnregisterPresenter(*this);
|
||||
|
||||
if (m_parts) {
|
||||
delete m_parts;
|
||||
m_parts = NULL;
|
||||
}
|
||||
m_parts = NULL;
|
||||
|
||||
m_criticalSection.Leave();
|
||||
if (!p_fromDestructor) {
|
||||
MxMediaPresenter::Destroy(FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1007ca30
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user