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
|
|
|
|
|
|
|
// VTABLE 0x100dd100
|
2023-10-08 16:41:34 -04:00
|
|
|
// SIZE 0x10
|
2023-06-29 04:10:08 -04:00
|
|
|
class MxStreamProvider : public MxCore
|
|
|
|
{
|
2023-06-29 12:05:45 -04:00
|
|
|
public:
|
2023-10-08 16:41:34 -04:00
|
|
|
inline MxStreamProvider() : m_pLookup(NULL), m_pFile(NULL) {}
|
2023-09-29 17:53:02 -04:00
|
|
|
|
2023-06-29 12:05:45 -04:00
|
|
|
// OFFSET: LEGO1 0x100d07e0
|
|
|
|
inline virtual const char *ClassName() const override // vtable+0x0c
|
|
|
|
{
|
|
|
|
return "MxStreamProvider";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-06-29 12:05:45 -04:00
|
|
|
// OFFSET: LEGO1 0x100d07f0
|
|
|
|
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(name, MxStreamProvider::ClassName()) || MxCore::IsA(name);
|
|
|
|
}
|
2023-07-07 14:00:48 -04:00
|
|
|
|
2023-10-08 16:41:34 -04:00
|
|
|
virtual MxResult SetResourceToGet(void* p_resource); //vtable+0x14
|
|
|
|
virtual MxU32 GetFileSize() = 0; //vtable+0x18
|
|
|
|
virtual MxU32 vtable0x1C() = 0; //vtable+0x1c
|
|
|
|
virtual void vtable0x20(undefined4 p_unknown1); //vtable+0x20
|
|
|
|
virtual MxU32 GetLengthInDWords() = 0; //vtable+0x24
|
|
|
|
virtual void* GetBufferForDWords() = 0; //vtable+0x28
|
|
|
|
|
2023-09-29 17:53:02 -04:00
|
|
|
protected:
|
2023-07-07 14:00:48 -04:00
|
|
|
void *m_pLookup;
|
|
|
|
MxDSFile* m_pFile;
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXSTREAMPROVIDER_H
|