mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Mostly match MxStreamer::Close
This commit is contained in:
@@ -79,14 +79,10 @@ MxLong MxStreamer::Close(const char* p_name)
|
|||||||
if (!p_name || !strcmp(p_name, c->GetAtom().GetInternal())) {
|
if (!p_name || !strcmp(p_name, c->GetAtom().GetInternal())) {
|
||||||
m_openStreams.erase(it);
|
m_openStreams.erase(it);
|
||||||
|
|
||||||
if (!c->FUN_100c20d0(ds)) {
|
if (c->FUN_100c20d0(ds))
|
||||||
MxStreamerNotification notif(MXSTREAMER_DELETE_NOTIFY, NULL, c);
|
|
||||||
|
|
||||||
NotificationManager()->Send(this, ¬if);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
delete c;
|
delete c;
|
||||||
}
|
else
|
||||||
|
NotificationManager()->Send(this, &MxStreamerNotification(MXSTREAMER_DELETE_NOTIFY, NULL, c));
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user