mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 02:53:04 +00:00
Add Bcat.DirectoryName and Resolved conflicts between new DirectoryName type and LibHac.Bcat.DirectoryName type
This commit is contained in:
parent
047418ca1f
commit
d34f7b0b64
9 changed files with 17 additions and 8 deletions
|
@ -18,7 +18,7 @@ namespace Ryujinx.Horizon.Bcat.Ipc
|
|||
}
|
||||
|
||||
[CmifCommand(10101)]
|
||||
public Result RequestSyncDeliveryCacheWithDirectoryName(out IDeliveryCacheProgressService deliveryCacheProgressService, LibHac.Bcat.DirectoryName arg1)
|
||||
public Result RequestSyncDeliveryCacheWithDirectoryName(out IDeliveryCacheProgressService deliveryCacheProgressService, DirectoryName directoryName)
|
||||
{
|
||||
// Just have the network request fail and pretend that everything is fine.
|
||||
deliveryCacheProgressService = new DeliveryCacheProgressService();
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace Ryujinx.Horizon.Bcat.Ipc
|
|||
}
|
||||
|
||||
[CmifCommand(0)]
|
||||
public Result Open(DirectoryName directoryName)
|
||||
public Result Open(LibHac.Bcat.DirectoryName directoryName)
|
||||
{
|
||||
return _libHacService.Get.Open(ref directoryName).ToHorizonResult();
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace Ryujinx.Horizon.Bcat.Ipc
|
|||
}
|
||||
|
||||
[CmifCommand(0)]
|
||||
public Result Open(DirectoryName directoryName, FileName fileName)
|
||||
public Result Open(LibHac.Bcat.DirectoryName directoryName, FileName fileName)
|
||||
{
|
||||
return _libHacService.Get.Open(ref directoryName, ref fileName).ToHorizonResult();
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ namespace Ryujinx.Horizon.Bcat.Ipc
|
|||
}
|
||||
|
||||
[CmifCommand(10)]
|
||||
public Result EnumerateDeliveryCacheDirectory(out int count, [Buffer(HipcBufferFlags.Out | HipcBufferFlags.MapAlias)] Span<DirectoryName> directoryNames)
|
||||
public Result EnumerateDeliveryCacheDirectory(out int count, [Buffer(HipcBufferFlags.Out | HipcBufferFlags.MapAlias)] Span<LibHac.Bcat.DirectoryName> directoryNames)
|
||||
{
|
||||
return _libHacService.Get.EnumerateDeliveryCacheDirectory(out count, directoryNames).ToHorizonResult();
|
||||
}
|
||||
|
|
9
src/Ryujinx.Horizon/Sdk/Bcat/DirectoryName.cs
Normal file
9
src/Ryujinx.Horizon/Sdk/Bcat/DirectoryName.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Ryujinx.Horizon.Sdk.Bcat
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, Size = 0x20, Pack = 0x1)]
|
||||
struct DirectoryName
|
||||
{
|
||||
}
|
||||
}
|
|
@ -6,6 +6,6 @@ namespace Ryujinx.Horizon.Sdk.Bcat
|
|||
internal interface IBcatService : IServiceObject
|
||||
{
|
||||
Result RequestSyncDeliveryCache(out IDeliveryCacheProgressService deliveryCacheProgressService);
|
||||
Result RequestSyncDeliveryCacheWithDirectoryName(out IDeliveryCacheProgressService deliveryCacheProgressService, LibHac.Bcat.DirectoryName arg1);
|
||||
Result RequestSyncDeliveryCacheWithDirectoryName(out IDeliveryCacheProgressService deliveryCacheProgressService, DirectoryName directoryName);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace Ryujinx.Horizon.Sdk.Bcat
|
|||
internal interface IDeliveryCacheDirectoryService : IServiceObject
|
||||
{
|
||||
Result GetCount(out int count);
|
||||
Result Open(DirectoryName directoryName);
|
||||
Result Open(LibHac.Bcat.DirectoryName directoryName);
|
||||
Result Read(out int entriesRead, Span<DeliveryCacheDirectoryEntry> entriesBuffer);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Ryujinx.Horizon.Sdk.Bcat
|
|||
{
|
||||
Result GetDigest(out Digest digest);
|
||||
Result GetSize(out long size);
|
||||
Result Open(DirectoryName directoryName, FileName fileName);
|
||||
Result Open(LibHac.Bcat.DirectoryName directoryName, FileName fileName);
|
||||
Result Read(long offset, out long bytesRead, Span<byte> data);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,6 @@ namespace Ryujinx.Horizon.Sdk.Bcat
|
|||
{
|
||||
Result CreateDirectoryService(out IDeliveryCacheDirectoryService service);
|
||||
Result CreateFileService(out IDeliveryCacheFileService service);
|
||||
Result EnumerateDeliveryCacheDirectory(out int count, Span<DirectoryName> directoryNames);
|
||||
Result EnumerateDeliveryCacheDirectory(out int count, Span<LibHac.Bcat.DirectoryName> directoryNames);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue