Revert "Project modernization (#630)"

This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.

This reverts commit a9be52c41a.
This commit is contained in:
Loki Rautio
2026-03-07 21:12:22 -06:00
parent a9be52c41a
commit 087b7e7abf
1373 changed files with 19449 additions and 19903 deletions

View File

@@ -9,7 +9,7 @@ ConsoleSaveFileInputStream::ConsoleSaveFileInputStream(ConsoleSaveFile *saveFile
m_saveFile = saveFile;
m_file = m_saveFile->createFile( file );
m_saveFile->setFilePointer( m_file, 0, nullptr, FILE_BEGIN );
m_saveFile->setFilePointer( m_file, 0, NULL, FILE_BEGIN );
}
ConsoleSaveFileInputStream::ConsoleSaveFileInputStream(ConsoleSaveFile *saveFile, FileEntry *file)
@@ -17,7 +17,7 @@ ConsoleSaveFileInputStream::ConsoleSaveFileInputStream(ConsoleSaveFile *saveFile
m_saveFile = saveFile;
m_file = file;
m_saveFile->setFilePointer( m_file, 0, nullptr, FILE_BEGIN );
m_saveFile->setFilePointer( m_file, 0, NULL, FILE_BEGIN );
}
//Reads a byte of data from this input stream. This method blocks if no input is yet available.
@@ -119,7 +119,7 @@ int ConsoleSaveFileInputStream::read(byteArray b, unsigned int offset, unsigned
//If this stream has an associated channel then the channel is closed as well.
void ConsoleSaveFileInputStream::close()
{
if( m_saveFile != nullptr )
if( m_saveFile != NULL )
{
BOOL result = m_saveFile->closeHandle( m_file );
@@ -129,6 +129,6 @@ void ConsoleSaveFileInputStream::close()
}
// Stop the dtor from trying to close it again
m_saveFile = nullptr;
m_saveFile = NULL;
}
}