mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-12-21 05:12:32 -05:00
9e686e2a87
* cmake+ci: run clang-tidy * Remove DESCRIPTION from LEGO1/LegoOmni.mingw.def * Add initial .clang-tidy and fixes * fix file perms * Comment out DESCRIPTION * Remove LegoEntity::~LegoEntity and MxPresenter::~MxPresenter from mingw's LEGO1.def * Looks like clang is allergic to the libs in the directx5 SDK * Update .clang-tidy * Fix typo in .clang-tidy * Attempt to generate an action error * Revert "Attempt to generate an action error" This reverts commit 96c4c65fedbc4102837f4bcbbb9ee83a7d14cba3. * cmake: test with -Wparentheses + optionally with -Werror * ci: -k0 is a Ninja argument * Use -Werror only for msys2 builds * cmake: only emit warnings for specific warnings * cmake: and don't do -Werror/-WX anymore * Fix warnings * Fix mingw warnings --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
47 lines
1.4 KiB
C++
47 lines
1.4 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 const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
return "MxStreamProvider";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100d07f0
|
|
inline 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
|
|
};
|
|
|
|
// SYNTHETIC: LEGO1 0x100d0870
|
|
// MxStreamProvider::`scalar deleting destructor'
|
|
|
|
// SYNTHETIC: LEGO1 0x100d08e0
|
|
// MxStreamProvider::~MxStreamProvider
|
|
|
|
#endif // MXSTREAMPROVIDER_H
|