mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 12:32:43 +00:00
Improve lv2_file::file_view::read
This commit is contained in:
parent
dd518fcafb
commit
257b0f0d69
@ -606,10 +606,7 @@ struct lv2_file::file_view : fs::file_base
|
|||||||
|
|
||||||
u64 read(void* buffer, u64 size) override
|
u64 read(void* buffer, u64 size) override
|
||||||
{
|
{
|
||||||
const u64 old_pos = m_file->file.pos();
|
const u64 result = m_file->file.read_at(m_off + m_pos, buffer, size);
|
||||||
m_file->file.seek(m_off + m_pos);
|
|
||||||
const u64 result = m_file->file.read(buffer, size);
|
|
||||||
ensure(old_pos == m_file->file.seek(old_pos));
|
|
||||||
|
|
||||||
m_pos += result;
|
m_pos += result;
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user