2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXRAMSTREAMPROVIDER_H
|
|
|
|
#define MXRAMSTREAMPROVIDER_H
|
|
|
|
|
|
|
|
#include "mxstreamprovider.h"
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dd0d0
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxRAMStreamProvider : public MxStreamProvider {
|
2023-10-08 16:41:34 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxRAMStreamProvider();
|
|
|
|
virtual ~MxRAMStreamProvider() override;
|
2023-10-10 04:27:00 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100d0970
|
2023-11-04 09:47:35 -04:00
|
|
|
inline virtual const char* ClassName() const override // vtable+0xc
|
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x10102864
|
2023-11-04 09:47:35 -04:00
|
|
|
return "MxRAMStreamProvider";
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100d0980
|
2023-12-13 05:48:14 -05:00
|
|
|
inline virtual MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-11-04 09:47:35 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, MxRAMStreamProvider::ClassName()) || MxStreamProvider::IsA(p_name);
|
2023-11-04 09:47:35 -04:00
|
|
|
}
|
|
|
|
|
2023-10-29 10:01:14 -04:00
|
|
|
virtual MxResult SetResourceToGet(MxStreamController* p_resource) override; // vtable+0x14
|
|
|
|
virtual MxU32 GetFileSize() override; // vtable+0x18
|
2023-12-22 14:03:55 -05:00
|
|
|
virtual MxS32 GetStreamBuffersNum() override; // vtable+0x1c
|
2023-10-29 10:01:14 -04:00
|
|
|
virtual MxU32 GetLengthInDWords() override; // vtable+0x24
|
|
|
|
virtual MxU32* GetBufferForDWords() override; // vtable+0x28
|
|
|
|
|
|
|
|
inline MxU32* GetBufferOfFileSize() { return m_pBufferOfFileSize; }
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-10-08 16:41:34 -04:00
|
|
|
protected:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxU32 m_bufferSize;
|
|
|
|
MxU32 m_fileSize;
|
2023-10-29 10:01:14 -04:00
|
|
|
MxU32* m_pBufferOfFileSize;
|
2023-10-24 19:38:27 -04:00
|
|
|
MxU32 m_lengthInDWords;
|
|
|
|
MxU32* m_bufferForDWords;
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXRAMSTREAMPROVIDER_H
|