mirror of
https://github.com/isledecomp/isle.git
synced 2024-12-11 00:31:24 -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 96c4c65fed
.
* 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>
50 lines
1.5 KiB
C++
50 lines
1.5 KiB
C++
#ifndef MXDSSOURCE_H
|
|
#define MXDSSOURCE_H
|
|
|
|
#include "mxcore.h"
|
|
|
|
class MxDSBuffer;
|
|
|
|
// VTABLE: LEGO1 0x100dc8c8
|
|
// SIZE 0x14
|
|
class MxDSSource : public MxCore {
|
|
public:
|
|
MxDSSource() : m_lengthInDWords(0), m_pBuffer(NULL), m_position(-1) {}
|
|
|
|
// FUNCTION: LEGO1 0x100bff60
|
|
~MxDSSource() override { delete[] m_pBuffer; }
|
|
|
|
// FUNCTION: LEGO1 0x100c0010
|
|
inline const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
// STRING: LEGO1 0x10102588
|
|
return "MxDSSource";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100c0020
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, MxDSSource::ClassName()) || MxCore::IsA(p_name);
|
|
}
|
|
|
|
virtual MxLong Open(MxULong) = 0; // vtable+0x14
|
|
virtual MxLong Close() = 0; // vtable+0x18
|
|
virtual MxResult ReadToBuffer(MxDSBuffer* p_buffer); // vtable+0x1c
|
|
virtual MxResult Read(unsigned char*, MxULong) = 0; // vtable+0x20
|
|
virtual MxLong Seek(MxLong, int) = 0; // vtable+0x24
|
|
virtual MxULong GetBufferSize() = 0; // vtable+0x28
|
|
virtual MxULong GetStreamBuffersNum() = 0; // vtable+0x2c
|
|
virtual MxLong GetLengthInDWords(); // vtable+0x30
|
|
virtual MxU32* GetBuffer(); // vtable+0x34
|
|
inline MxLong GetPosition() const { return m_position; }
|
|
|
|
protected:
|
|
MxULong m_lengthInDWords; // 0x08
|
|
MxU32* m_pBuffer; // 0x0c
|
|
MxLong m_position; // 0x10
|
|
};
|
|
|
|
// SYNTHETIC: LEGO1 0x100c00a0
|
|
// MxDSSource::`scalar deleting destructor'
|
|
|
|
#endif // MXDSSOURCE_H
|