mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 09:38:14 -05:00
cb8c143ce5
* more mxdiskstreamcontroller methods * further debugging and fixes * add more functions * Update mxdiskstreamprovider.cpp * fix build * implement MxDiskStreamProvider::PerformWork * Update mxdiskstreamprovider.cpp * Update mxdiskstreamprovider.cpp * Update mxdssource.h * remove debug prints * Update mxdiskstreamprovider.cpp * Mostly match MxDiskStreamController::FUN_100c8540 * Mostly match MxDiskStreamProvider::FUN_100d1780 * Mostly match MxDiskStreamProvider::PerformWork * Fixes * Retype some members * Various annotations --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
23 lines
428 B
C++
23 lines
428 B
C++
#include "mxdssource.h"
|
|
|
|
#include "mxdsbuffer.h"
|
|
|
|
DECOMP_SIZE_ASSERT(MxDSSource, 0x14)
|
|
|
|
// FUNCTION: LEGO1 0x100bffd0
|
|
MxResult MxDSSource::ReadToBuffer(MxDSBuffer* p_buffer)
|
|
{
|
|
return Read(p_buffer->GetBuffer(), p_buffer->GetWriteOffset());
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100bfff0
|
|
MxLong MxDSSource::GetLengthInDWords()
|
|
{
|
|
return m_lengthInDWords;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100c0000
|
|
MxU32* MxDSSource::GetBuffer()
|
|
{
|
|
return m_pBuffer;
|
|
}
|