mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-30 03:26:12 -05:00
114a959741
* mxdiskstreamcontroller vtable + MxStreamController::vtable0x20
* stub MxDiskStreamController::Open
* MxDiskStreamProvider
* MxNextActionDataStart
* Revert "MxNextActionDataStart"
This reverts commit 41e8cfa2f1
.
* Match MxStreamController::vtable0x20
---------
Co-authored-by: Christian Semmler <mail@csemmler.com>
59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
#include "mxramstreamprovider.h"
|
|
#include "decomp.h"
|
|
|
|
DECOMP_SIZE_ASSERT(MxRAMStreamProvider, 0x24);
|
|
|
|
// OFFSET: LEGO1 0x100d0730
|
|
MxRAMStreamProvider::MxRAMStreamProvider()
|
|
{
|
|
m_bufferSize = 0;
|
|
m_fileSize = 0;
|
|
m_pBufferOfFileSize = NULL;
|
|
m_lengthInDWords = 0;
|
|
m_bufferForDWords = NULL;
|
|
}
|
|
|
|
// 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(void* p_resource)
|
|
{
|
|
return FAILURE;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100d0930
|
|
MxU32 MxRAMStreamProvider::GetFileSize()
|
|
{
|
|
return m_fileSize;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100d0940
|
|
MxU32 MxRAMStreamProvider::GetStreamBuffersNum()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100d0950
|
|
MxU32 MxRAMStreamProvider::GetLengthInDWords()
|
|
{
|
|
return m_lengthInDWords;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100d0960
|
|
MxU32* MxRAMStreamProvider::GetBufferForDWords()
|
|
{
|
|
return m_bufferForDWords;
|
|
}
|