mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
Match MxDiskStreamProvider::VTable0x20
This commit is contained in:
parent
55f2674ea4
commit
f84abd61af
@ -81,27 +81,26 @@ MxResult MxDiskStreamProvider::SetResourceToGet(MxStreamController* p_resource)
|
||||
void MxDiskStreamProvider::VTable0x20(MxDSAction* p_action)
|
||||
{
|
||||
MxDSStreamingAction* action;
|
||||
|
||||
if (p_action->GetObjectId() == -1) {
|
||||
m_unk0x35 = 1;
|
||||
m_unk0x35 = FALSE;
|
||||
|
||||
do {
|
||||
action = NULL;
|
||||
|
||||
{
|
||||
MxAutoLocker lock(&m_criticalSection);
|
||||
action = NULL;
|
||||
if (m_list.size()) {
|
||||
m_list.pop_front();
|
||||
}
|
||||
m_list.PopFrontStreamingAction(action);
|
||||
}
|
||||
|
||||
if (action == NULL) {
|
||||
if (!action)
|
||||
return;
|
||||
}
|
||||
|
||||
if (action->GetUnknowna0()->GetWriteOffset() < 0x20000) {
|
||||
if (action->GetUnknowna0()->GetWriteOffset() < 0x20000)
|
||||
g_unk0x10102878--;
|
||||
}
|
||||
|
||||
((MxDiskStreamController*) m_pLookup)->FUN_100c8670(action);
|
||||
} while (action != NULL);
|
||||
} while (action);
|
||||
}
|
||||
else {
|
||||
do {
|
||||
@ -110,16 +109,14 @@ void MxDiskStreamProvider::VTable0x20(MxDSAction* p_action)
|
||||
action = (MxDSStreamingAction*) m_list.Find(p_action, TRUE);
|
||||
}
|
||||
|
||||
if (action == NULL) {
|
||||
if (!action)
|
||||
return;
|
||||
}
|
||||
|
||||
if (action->GetUnknowna0()->GetWriteOffset() < 0x20000) {
|
||||
if (action->GetUnknowna0()->GetWriteOffset() < 0x20000)
|
||||
g_unk0x10102878--;
|
||||
}
|
||||
|
||||
((MxDiskStreamController*) m_pLookup)->FUN_100c8670(action);
|
||||
} while (action != NULL);
|
||||
} while (action);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -46,7 +46,6 @@ class MxDSChunk : public MxCore {
|
||||
inline MxU16 GetFlags() { return m_flags; }
|
||||
inline undefined4 GetObjectId() { return m_objectId; }
|
||||
inline MxLong GetTime() { return m_time; }
|
||||
inline MxLong& GetTimeRef() { return m_time; }
|
||||
inline MxU32 GetLength() { return m_length; }
|
||||
inline MxU8* GetData() { return m_data; }
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user