Use a portable seek origin for save files

This commit is contained in:
notmatthewbeshay
2026-03-10 10:32:58 +11:00
parent 45c22ab6cc
commit 83ba8d8384
11 changed files with 58 additions and 37 deletions

View File

@@ -19,7 +19,7 @@ ConsoleSaveFileOutputStream::ConsoleSaveFileOutputStream(ConsoleSaveFile *saveFi
m_file = m_saveFile->createFile(file);
m_saveFile->setFilePointer( m_file, 0, NULL, FILE_BEGIN );
m_saveFile->setFilePointer( m_file, 0, SaveFileSeekOrigin::Begin );
}
ConsoleSaveFileOutputStream::ConsoleSaveFileOutputStream(ConsoleSaveFile *saveFile, FileEntry *file)
@@ -28,7 +28,7 @@ ConsoleSaveFileOutputStream::ConsoleSaveFileOutputStream(ConsoleSaveFile *saveFi
m_file = file;
m_saveFile->setFilePointer( m_file, 0, NULL, FILE_BEGIN );
m_saveFile->setFilePointer( m_file, 0, SaveFileSeekOrigin::Begin );
}
//Writes the specified byte to this file output stream. Implements the write method of OutputStream.