2023-10-08 16:41:34 -04:00
|
|
|
#include "mxramstreamprovider.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-10-08 16:41:34 -04:00
|
|
|
#include "decomp.h"
|
|
|
|
|
|
|
|
DECOMP_SIZE_ASSERT(MxRAMStreamProvider, 0x24);
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100d0730
|
|
|
|
MxRAMStreamProvider::MxRAMStreamProvider()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
m_bufferSize = 0;
|
|
|
|
m_fileSize = 0;
|
|
|
|
m_pBufferOfFileSize = NULL;
|
|
|
|
m_lengthInDWords = 0;
|
|
|
|
m_bufferForDWords = NULL;
|
2023-10-08 16:41:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100d0930
|
|
|
|
MxU32 MxRAMStreamProvider::GetFileSize()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
return m_fileSize;
|
2023-10-08 16:41:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100d0940
|
2023-10-10 04:27:00 -04:00
|
|
|
MxU32 MxRAMStreamProvider::GetStreamBuffersNum()
|
2023-10-08 16:41:34 -04:00
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
return 1;
|
2023-10-08 16:41:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100d0950
|
|
|
|
MxU32 MxRAMStreamProvider::GetLengthInDWords()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
return m_lengthInDWords;
|
2023-10-08 16:41:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100d0960
|
2023-10-10 04:27:00 -04:00
|
|
|
MxU32* MxRAMStreamProvider::GetBufferForDWords()
|
2023-10-08 16:41:34 -04:00
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
return m_bufferForDWords;
|
2023-10-08 16:41:34 -04:00
|
|
|
}
|
2023-11-21 03:44:45 -05:00
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100d0a50
|
|
|
|
MxRAMStreamProvider::~MxRAMStreamProvider()
|
|
|
|
{
|
|
|
|
m_bufferSize = 0;
|
|
|
|
m_fileSize = 0;
|
|
|
|
|
|
|
|
free(m_pBufferOfFileSize);
|
|
|
|
m_pBufferOfFileSize = NULL;
|
|
|
|
|
|
|
|
m_lengthInDWords = 0;
|
|
|
|
|
|
|
|
free(m_bufferForDWords);
|
|
|
|
m_bufferForDWords = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100d0ae0 STUB
|
|
|
|
MxResult MxRAMStreamProvider::SetResourceToGet(MxStreamController* p_resource)
|
|
|
|
{
|
|
|
|
return FAILURE;
|
|
|
|
}
|