Match MxDSFile scalar ddtor, add annotations (#523)

This commit is contained in:
Christian Semmler
2024-02-03 11:33:22 -05:00
committed by GitHub
parent 83e116defc
commit f0ea8850c4
4 changed files with 32 additions and 19 deletions

View File

@@ -1,15 +1,14 @@
#include "mxdsfile.h"
#include "decomp.h"
#include <stdio.h>
#define SI_MAJOR_VERSION 2
#define SI_MINOR_VERSION 2
// FUNCTION: LEGO1 0x100bfed0
MxDSFile::~MxDSFile()
{
Close();
}
DECOMP_SIZE_ASSERT(MxDSFile::ChunkHeader, 0x0c)
DECOMP_SIZE_ASSERT(MxDSFile, 0x7c)
// FUNCTION: LEGO1 0x100cc4b0
MxDSFile::MxDSFile(const char* p_filename, MxULong p_skipReadingChunks)
@@ -37,10 +36,10 @@ MxLong MxDSFile::Open(MxULong p_uStyle)
}
if (longResult != 0) {
Close(); // vtable + 0x18
Close();
}
else {
Seek(0, 0); // vtable + 0x24
Seek(0, 0);
}
return longResult;