IOFile: Make origin parameter to Seek() an enum class.

This commit is contained in:
Admiral H. Curtiss 2022-01-29 05:58:31 +01:00
commit 36cfcb530f
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
26 changed files with 116 additions and 78 deletions

View file

@ -150,7 +150,7 @@ bool DriveReader::ReadMultipleAlignedBlocks(u64 block_num, u64 num_blocks, u8* o
}
return bytes_read == GetSectorSize() * num_blocks;
#else
m_file.Seek(GetSectorSize() * block_num, SEEK_SET);
m_file.Seek(GetSectorSize() * block_num, File::SeekOrigin::Begin);
if (m_file.ReadBytes(out_ptr, num_blocks * GetSectorSize()))
return true;
m_file.Clear();