mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 07:28:00 -05:00
fix: MxDSFile::Open is now matching 100% (#69)
This commit is contained in:
parent
646b39e876
commit
b91c7d436b
1 changed files with 4 additions and 5 deletions
|
@ -23,16 +23,15 @@ MxDSFile::~MxDSFile()
|
|||
// OFFSET: LEGO1 0x100cc590
|
||||
long MxDSFile::Open(unsigned long uStyle)
|
||||
{
|
||||
// No idea what's stopping this one matching, but I'm pretty
|
||||
// confident it has the correct behavior.
|
||||
MXIOINFO& io = m_io;
|
||||
long longResult = 1;
|
||||
memset(&m_io, 0, sizeof(MXIOINFO));
|
||||
memset(&io, 0, sizeof(MXIOINFO));
|
||||
|
||||
if (m_io.Open(m_filename.GetData(), uStyle) != 0) {
|
||||
if (io.Open(m_filename.GetData(), uStyle) != 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
m_io.SetBuffer(NULL, 0, 0);
|
||||
io.SetBuffer(NULL, 0, 0);
|
||||
m_position = 0;
|
||||
|
||||
if (m_skipReadingChunks == 0) {
|
||||
|
|
Loading…
Reference in a new issue