1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 06:01:52 +00:00

dmnt: update targetio file ops for new libnx api

This commit is contained in:
Michael Scire 2019-06-08 15:58:09 -07:00
parent df3c8f4c94
commit e7e5ef4e5d

View file

@ -172,7 +172,7 @@ Result DebugMonitorService::TargetIO_FileRead(InBuffer<u64> hnd, OutBuffer<u8, B
}
size_t read = 0;
rc = fsFileRead(&f, offset, out_data.buffer, out_data.num_elements, &read);
rc = fsFileRead(&f, offset, out_data.buffer, out_data.num_elements, FS_READOPTION_NONE, &read);
out_read.SetValue(static_cast<u32>(read));
return rc;
}
@ -189,7 +189,7 @@ Result DebugMonitorService::TargetIO_FileWrite(InBuffer<u64> hnd, InBuffer<u8, B
return rc;
}
rc = fsFileWrite(&f, offset, data.buffer, data.num_elements);
rc = fsFileWrite(&f, offset, data.buffer, data.num_elements, FS_WRITEOPTION_NONE);
if (R_SUCCEEDED(rc)) {
out_written.SetValue(data.num_elements);
}