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/FileBlob.cpp | |
| parent | fbe7cf675cf412af12d2f750c6162f6e4151c52c (diff) | |
| parent | a336c4386c154746ef2ea732b13872f5293666be (diff) | |
Merge pull request #10403 from AdmiralCurtiss/iofile-seek
Minor IOFile cleanup.
Diffstat (limited to 'Source/Core/DiscIO/FileBlob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/FileBlob.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/FileBlob.cpp b/Source/Core/DiscIO/FileBlob.cpp index 17c855fbfe..e185fe9cc2 100644 --- a/Source/Core/DiscIO/FileBlob.cpp +++ b/Source/Core/DiscIO/FileBlob.cpp @@ -30,13 +30,13 @@ std::unique_ptr<PlainFileReader> PlainFileReader::Create(File::IOFile file) bool PlainFileReader::Read(u64 offset, u64 nbytes, u8* out_ptr) { - if (m_file.Seek(offset, SEEK_SET) && m_file.ReadBytes(out_ptr, nbytes)) + if (m_file.Seek(offset, File::SeekOrigin::Begin) && m_file.ReadBytes(out_ptr, nbytes)) { return true; } else { - m_file.Clear(); + m_file.ClearError(); return false; } } |
