diff options
| author | JosJuice <josjuice@gmail.com> | 2022-01-29 11:59:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-29 11:59:58 +0100 |
| commit | af5678ea758d493c419ca53c56a0ce4f8fa0ca0f (patch) | |
| tree | 6e76a1fee0e79d593d95c9680d2353f9033b0ac6 /Source/Core/DiscIO/DriveBlob.cpp | |
| parent | fbe7cf675cf412af12d2f750c6162f6e4151c52c (diff) | |
| parent | a336c4386c154746ef2ea732b13872f5293666be (diff) | |
Merge pull request #10403 from AdmiralCurtiss/iofile-seek
Minor IOFile cleanup.
Diffstat (limited to 'Source/Core/DiscIO/DriveBlob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DriveBlob.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/DriveBlob.cpp b/Source/Core/DiscIO/DriveBlob.cpp index 3755317e3a..033a6d257c 100644 --- a/Source/Core/DiscIO/DriveBlob.cpp +++ b/Source/Core/DiscIO/DriveBlob.cpp @@ -150,10 +150,10 @@ 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(); + m_file.ClearError(); return false; #endif } |
