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-12-28 11:56:54 -05:00
|
|
|
// SIZE 0x24
|
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
|
2024-01-29 16:17:17 -05:00
|
|
|
inline virtual const char* ClassName() const override // vtable+0x0c
|
2023-11-04 09:47:35 -04:00
|
|
|
{
|
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
|
|
|
|
|
2024-01-10 06:55:25 -05:00
|
|
|
inline MxU8* GetBufferOfFileSize() { return m_pBufferOfFileSize; }
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-10-08 16:41:34 -04:00
|
|
|
protected:
|
2024-01-10 06:55:25 -05:00
|
|
|
MxU32 m_bufferSize; // 0x10
|
|
|
|
MxU32 m_fileSize; // 0x14
|
|
|
|
MxU8* m_pBufferOfFileSize; // 0x18
|
|
|
|
MxU32 m_lengthInDWords; // 0x1c
|
|
|
|
MxU32* m_bufferForDWords; // 0x20
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
2023-12-28 11:56:54 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100d0a30
|
|
|
|
// MxRAMStreamProvider::`scalar deleting destructor'
|
|
|
|
|
2024-01-10 06:55:25 -05:00
|
|
|
MxU32 ReadData(MxU8* p_fileSizeBuffer, MxU32 p_fileSize);
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // MXRAMSTREAMPROVIDER_H
|