isle/LEGO1/mxstreamprovider.h
Misha cb8c143ce5
Finish MxDiskStreamController methods (#359)
* 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>
2023-12-25 19:32:01 +01:00

41 lines
1.2 KiB
C++

#ifndef MXSTREAMPROVIDER_H
#define MXSTREAMPROVIDER_H
#include "decomp.h"
#include "mxcore.h"
#include "mxdsfile.h"
class MxStreamController;
class MxDSAction;
// VTABLE: LEGO1 0x100dd100
// SIZE 0x10
class MxStreamProvider : public MxCore {
public:
inline MxStreamProvider() : m_pLookup(NULL), m_pFile(NULL) {}
// FUNCTION: LEGO1 0x100d07e0
inline virtual const char* ClassName() const override // vtable+0x0c
{
return "MxStreamProvider";
}
// FUNCTION: LEGO1 0x100d07f0
inline virtual MxBool IsA(const char* p_name) const override // vtable+0x10
{
return !strcmp(p_name, MxStreamProvider::ClassName()) || MxCore::IsA(p_name);
}
virtual MxResult SetResourceToGet(MxStreamController* p_resource); // vtable+0x14
virtual MxU32 GetFileSize() = 0; // vtable+0x18
virtual MxS32 GetStreamBuffersNum() = 0; // vtable+0x1c
virtual void VTable0x20(MxDSAction* p_action); // vtable+0x20
virtual MxU32 GetLengthInDWords() = 0; // vtable+0x24
virtual MxU32* GetBufferForDWords() = 0; // vtable+0x28
protected:
MxStreamController* m_pLookup; // 0x08
MxDSFile* m_pFile; // 0x0c
};
#endif // MXSTREAMPROVIDER_H