mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 18:45:36 +00:00
hack fix
This commit is contained in:
parent
ea92214ff5
commit
77c11dabbe
@ -293,9 +293,10 @@ s64 PS4_SYSV_ABI write(s32 fd, const void* buf, size_t nbytes) {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
auto file_size_before = file->f.GetSize();
|
||||
auto written_bytes = file->f.WriteRaw<u8>(buf, nbytes);
|
||||
auto file_size = file->f.GetSize();
|
||||
if (file_size != written_bytes) {
|
||||
if (file_size != file_size_before + written_bytes) {
|
||||
file->f.SetSize(written_bytes);
|
||||
}
|
||||
return written_bytes;
|
||||
|
Loading…
Reference in New Issue
Block a user