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

committed by
GitHub

parent
83e116defc
commit
f0ea8850c4
@@ -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;
|
||||
|
Reference in New Issue
Block a user