mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-06 03:38:59 +02:00
misc: chore: Use explicit types & fix object creation
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using LibHac;
|
||||
using LibHac.Common;
|
||||
using LibHac.Sf;
|
||||
using Ryujinx.Memory;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Services.Fs
|
||||
{
|
||||
@@ -20,7 +21,7 @@ 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);
|
||||
using WritableRegion 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);
|
||||
|
||||
Reference in New Issue
Block a user