2023-06-29 04:10:08 -04:00
|
|
|
#include "mxdiskstreamprovider.h"
|
|
|
|
|
2023-07-07 14:00:48 -04:00
|
|
|
#include "mxthread.h"
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100d0f30
|
|
|
|
MxResult MxDiskStreamProviderThread::Run()
|
|
|
|
{
|
|
|
|
if (m_target != NULL)
|
|
|
|
m_target->WaitForWorkToComplete();
|
|
|
|
MxThread::Run();
|
|
|
|
// They should probably have writen "return MxThread::Run()" but they didn't.
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
// OFFSET: LEGO1 0x100d0f70
|
|
|
|
MxDiskStreamProvider::MxDiskStreamProvider()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100d1240
|
|
|
|
MxDiskStreamProvider::~MxDiskStreamProvider()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
2023-07-07 14:00:48 -04:00
|
|
|
|
|
|
|
// Matching but with esi / edi swapped
|
|
|
|
// OFFSET: LEGO1 0x100d1750
|
|
|
|
MxResult MxDiskStreamProvider::WaitForWorkToComplete()
|
|
|
|
{
|
|
|
|
while (m_remainingWork != 0)
|
|
|
|
{
|
|
|
|
m_busySemaphore.Wait(INFINITE);
|
|
|
|
if (m_unk1 != 0)
|
|
|
|
PerformWork();
|
|
|
|
}
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100d1760 STUB
|
|
|
|
void MxDiskStreamProvider::PerformWork()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|