mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Match MxDSFile scalar ddtor, add annotations (#523)
This commit is contained in:

committed by
GitHub

parent
83e116defc
commit
f0ea8850c4
@@ -9,10 +9,19 @@
|
||||
#include <windows.h>
|
||||
|
||||
// VTABLE: LEGO1 0x100dc890
|
||||
// SIZE 0x7c
|
||||
class MxDSFile : public MxDSSource {
|
||||
public:
|
||||
MxDSFile(const char* p_filename, MxULong p_skipReadingChunks);
|
||||
~MxDSFile() override; // vtable+0x00
|
||||
|
||||
#ifdef ISLE_APP
|
||||
~MxDSFile() override { Close(); }
|
||||
#else
|
||||
// We have to explicitly use dllexport, otherwise this function cannot be exported,
|
||||
// since it is inlined everywhere in LEGO1.DLL
|
||||
// FUNCTION: LEGO1 0x100bfed0
|
||||
__declspec(dllexport) ~MxDSFile() override { Close(); }
|
||||
#endif
|
||||
|
||||
// FUNCTION: LEGO1 0x100c0120
|
||||
inline const char* ClassName() const override // vtable+0x0c
|
||||
@@ -41,25 +50,27 @@ public:
|
||||
// SYNTHETIC: LEGO1 0x100c01e0
|
||||
// MxDSFile::`scalar deleting destructor'
|
||||
|
||||
private:
|
||||
MxLong ReadChunks();
|
||||
// SIZE 0x0c
|
||||
struct ChunkHeader {
|
||||
ChunkHeader() : m_majorVersion(0), m_minorVersion(0), m_bufferSize(0), m_streamBuffersNum(0) {}
|
||||
|
||||
MxU16 m_majorVersion;
|
||||
MxU16 m_minorVersion;
|
||||
MxULong m_bufferSize;
|
||||
MxS16 m_streamBuffersNum;
|
||||
MxS16 m_reserved;
|
||||
MxU16 m_majorVersion; // 0x00
|
||||
MxU16 m_minorVersion; // 0x02
|
||||
MxULong m_bufferSize; // 0x04
|
||||
MxS16 m_streamBuffersNum; // 0x08
|
||||
MxS16 m_reserved; // 0x0a
|
||||
};
|
||||
|
||||
MxString m_filename;
|
||||
MXIOINFO m_io;
|
||||
ChunkHeader m_header;
|
||||
private:
|
||||
MxLong ReadChunks();
|
||||
|
||||
MxString m_filename; // 0x14
|
||||
MXIOINFO m_io; // 0x24
|
||||
ChunkHeader m_header; // 0x6c
|
||||
|
||||
// If false, read chunks immediately on open, otherwise
|
||||
// skip reading chunks until ReadChunks is explicitly called.
|
||||
MxULong m_skipReadingChunks;
|
||||
MxULong m_skipReadingChunks; // 0x78
|
||||
};
|
||||
|
||||
#endif // MXDSFILE_H
|
||||
|
Reference in New Issue
Block a user