mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
IOFile: Make origin parameter to Seek() an enum class.
This commit is contained in:
parent
c2d8191fbb
commit
36cfcb530f
26 changed files with 116 additions and 78 deletions
|
@ -30,7 +30,7 @@ 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue