2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXSTREAMPROVIDER_H
|
|
|
|
#define MXSTREAMPROVIDER_H
|
|
|
|
|
2023-10-08 16:41:34 -04:00
|
|
|
#include "decomp.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcore.h"
|
2023-07-07 14:00:48 -04:00
|
|
|
#include "mxdsfile.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-10-29 10:01:14 -04:00
|
|
|
class MxStreamController;
|
2023-12-24 08:52:26 -05:00
|
|
|
class MxDSAction;
|
2023-10-29 10:01:14 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dd100
|
2023-10-08 16:41:34 -04:00
|
|
|
// SIZE 0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxStreamProvider : public MxCore {
|
2023-06-29 12:05:45 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
inline MxStreamProvider() : m_pLookup(NULL), m_pFile(NULL) {}
|
2023-09-29 17:53:02 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100d07e0
|
2023-10-24 19:38:27 -04:00
|
|
|
inline virtual const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
|
|
|
return "MxStreamProvider";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100d07f0
|
2023-12-13 05:48:14 -05:00
|
|
|
inline virtual MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, MxStreamProvider::ClassName()) || MxCore::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-07-07 14:00:48 -04:00
|
|
|
|
2023-10-29 10:01:14 -04:00
|
|
|
virtual MxResult SetResourceToGet(MxStreamController* p_resource); // vtable+0x14
|
|
|
|
virtual MxU32 GetFileSize() = 0; // vtable+0x18
|
2023-12-22 14:03:55 -05:00
|
|
|
virtual MxS32 GetStreamBuffersNum() = 0; // vtable+0x1c
|
2023-12-24 08:52:26 -05:00
|
|
|
virtual void VTable0x20(MxDSAction* p_action); // vtable+0x20
|
2023-10-29 10:01:14 -04:00
|
|
|
virtual MxU32 GetLengthInDWords() = 0; // vtable+0x24
|
|
|
|
virtual MxU32* GetBufferForDWords() = 0; // vtable+0x28
|
2023-10-08 16:41:34 -04:00
|
|
|
|
2023-09-29 17:53:02 -04:00
|
|
|
protected:
|
2023-12-25 13:32:01 -05:00
|
|
|
MxStreamController* m_pLookup; // 0x08
|
|
|
|
MxDSFile* m_pFile; // 0x0c
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
2023-12-28 11:56:54 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100d0870
|
|
|
|
// MxStreamProvider::`scalar deleting destructor'
|
|
|
|
|
2024-01-14 16:28:46 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100d08e0
|
|
|
|
// MxStreamProvider::~MxStreamProvider
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // MXSTREAMPROVIDER_H
|