aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Fs/ISaveDataInfoReader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/Fs/ISaveDataInfoReader.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Fs/ISaveDataInfoReader.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Fs/ISaveDataInfoReader.cs b/src/Ryujinx.HLE/HOS/Services/Fs/ISaveDataInfoReader.cs
index 0611375b..022d7b81 100644
--- a/src/Ryujinx.HLE/HOS/Services/Fs/ISaveDataInfoReader.cs
+++ b/src/Ryujinx.HLE/HOS/Services/Fs/ISaveDataInfoReader.cs
@@ -20,14 +20,12 @@ namespace Ryujinx.HLE.HOS.Services.Fs
ulong bufferAddress = context.Request.ReceiveBuff[0].Position;
ulong bufferLen = context.Request.ReceiveBuff[0].Size;
- using (var region = context.Memory.GetWritableRegion(bufferAddress, (int)bufferLen, true))
- {
- Result result = _baseReader.Get.Read(out long readCount, new OutBuffer(region.Memory.Span));
+ using var region = context.Memory.GetWritableRegion(bufferAddress, (int)bufferLen, true);
+ Result result = _baseReader.Get.Read(out long readCount, new OutBuffer(region.Memory.Span));
- context.ResponseData.Write(readCount);
+ context.ResponseData.Write(readCount);
- return (ResultCode)result.Value;
- }
+ return (ResultCode)result.Value;
}
protected override void Dispose(bool isDisposing)