mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[Kernel] XFile: Override file position if offset is provided
This commit is contained in:
parent
6173cedde7
commit
97be6ebf51
|
|
@ -157,6 +157,10 @@ X_STATUS XFile::Read(uint32_t buffer_guest_address, uint32_t buffer_length,
|
|||
xe::global_critical_region::AcquireDirect(),
|
||||
buffer_guest_address, buffer_length, true, true);
|
||||
}
|
||||
|
||||
if (byte_offset) {
|
||||
position_ = byte_offset;
|
||||
}
|
||||
position_ += bytes_read;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue