File system refactor, bug fixes

This commit is contained in:
elasota
2021-03-07 04:24:13 -05:00
parent 6715bcb030
commit 3917e1a370
70 changed files with 2417 additions and 1242 deletions

View File

@@ -70,12 +70,7 @@ namespace PortabilityLayer
if (!m_file)
return false;
return fseek(m_file, static_cast<long>(loc), SEEK_END) == 0;
}
bool CFileStream::Truncate(GpUFilePos_t loc)
{
return false;
return fseek(m_file, -static_cast<long>(loc), SEEK_END) == 0;
}
GpUFilePos_t CFileStream::Tell() const