diff --git a/Ryujinx.HLE/HOS/Horizon.cs b/Ryujinx.HLE/HOS/Horizon.cs index 0b55ee0a74..05b2b28fa5 100644 --- a/Ryujinx.HLE/HOS/Horizon.cs +++ b/Ryujinx.HLE/HOS/Horizon.cs @@ -260,7 +260,7 @@ namespace Ryujinx.HLE.HOS if (nca.Header.ContentType == ContentType.Program) { - int dataIndex = Nca.SectionIndexFromType(NcaSectionType.Data, ContentType.Program); + int dataIndex = Nca.GetSectionIndexFromType(NcaSectionType.Data, ContentType.Program); if (nca.Header.GetFsHeader(dataIndex).IsPatchSection()) { @@ -338,7 +338,7 @@ namespace Ryujinx.HLE.HOS if (nca.Header.ContentType == ContentType.Program) { - int dataIndex = Nca.SectionIndexFromType(NcaSectionType.Data, ContentType.Program); + int dataIndex = Nca.GetSectionIndexFromType(NcaSectionType.Data, ContentType.Program); if (nca.Header.GetFsHeader(dataIndex).IsPatchSection()) { diff --git a/Ryujinx.HLE/HOS/Services/FspSrv/IFile.cs b/Ryujinx.HLE/HOS/Services/FspSrv/IFile.cs index 3cedf4feba..0b8b31fb75 100644 --- a/Ryujinx.HLE/HOS/Services/FspSrv/IFile.cs +++ b/Ryujinx.HLE/HOS/Services/FspSrv/IFile.cs @@ -1,3 +1,4 @@ +using LibHac.Fs; using Ryujinx.HLE.HOS.Ipc; using System; using System.Collections.Generic; @@ -36,7 +37,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv { long position = context.Request.ReceiveBuff[0].Position; - int readOption = context.RequestData.ReadInt32(); + ReadOption readOption = (ReadOption)context.RequestData.ReadInt32(); context.RequestData.BaseStream.Position += 4; long offset = context.RequestData.ReadInt64(); @@ -44,7 +45,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv byte[] data = new byte[size]; - int readSize = _baseFile.Read(data, offset); + int readSize = _baseFile.Read(data, offset, readOption); context.Memory.WriteBytes(position, data); @@ -58,7 +59,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv { long position = context.Request.SendBuff[0].Position; - int writeOption = context.RequestData.ReadInt32(); + WriteOption writeOption = (WriteOption)context.RequestData.ReadInt32(); context.RequestData.BaseStream.Position += 4; long offset = context.RequestData.ReadInt64(); @@ -66,7 +67,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv byte[] data = context.Memory.ReadBytes(position, size); - _baseFile.Write(data, offset); + _baseFile.Write(data, offset, writeOption); return 0; } diff --git a/Ryujinx.HLE/Ryujinx.HLE.csproj b/Ryujinx.HLE/Ryujinx.HLE.csproj index 3c42cf548e..5079f03035 100644 --- a/Ryujinx.HLE/Ryujinx.HLE.csproj +++ b/Ryujinx.HLE/Ryujinx.HLE.csproj @@ -46,7 +46,7 @@ - +