mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
Implement/match MxStreamer::DeleteObject (#370)
This commit is contained in:
parent
6e947c3789
commit
ac6eb28dc4
1 changed files with 11 additions and 3 deletions
|
@ -142,7 +142,7 @@ MxResult MxStreamer::FUN_100b99b0(MxDSAction* p_action)
|
|||
return FAILURE;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100b99f0
|
||||
// FUNCTION: LEGO1 0x100b99f0
|
||||
MxResult MxStreamer::DeleteObject(MxDSAction* p_dsAction)
|
||||
{
|
||||
MxDSAction tempAction;
|
||||
|
@ -156,8 +156,16 @@ MxResult MxStreamer::DeleteObject(MxDSAction* p_dsAction)
|
|||
tempAction.SetUnknown24(p_dsAction->GetUnknown24());
|
||||
}
|
||||
|
||||
// TODO: remove action from list
|
||||
return FAILURE;
|
||||
MxResult result = FAILURE;
|
||||
for (list<MxStreamController*>::iterator it = m_openStreams.begin(); it != m_openStreams.end(); it++) {
|
||||
const char* id = p_dsAction->GetAtomId().GetInternal();
|
||||
if (!id || id == (*it)->GetAtom().GetInternal()) {
|
||||
tempAction.SetAtomId((*it)->GetAtom());
|
||||
result = (*it)->VTable0x24(&tempAction);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100b9b30
|
||||
|
|
Loading…
Reference in a new issue