mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-30 08:09:05 +00:00
misc: chore: Fix object creation in Horizon
This commit is contained in:
@@ -39,7 +39,7 @@ namespace Ryujinx.Horizon.Bcat.Ipc
|
||||
[CmifCommand(1)]
|
||||
public Result CreateDeliveryCacheStorageService(out IDeliveryCacheStorageService service, [ClientProcessId] ulong pid)
|
||||
{
|
||||
using SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheStorageService> libHacService = new SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheStorageService>();
|
||||
using SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheStorageService> libHacService = new();
|
||||
|
||||
LibHac.Result resultCode = _libHacService.Get.CreateDeliveryCacheStorageService(ref libHacService.Ref, pid);
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Ryujinx.Horizon.Bcat.Ipc
|
||||
[CmifCommand(2)]
|
||||
public Result CreateDeliveryCacheStorageServiceWithApplicationId(out IDeliveryCacheStorageService service, ApplicationId applicationId)
|
||||
{
|
||||
using SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheStorageService> libHacService = new SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheStorageService>();
|
||||
using SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheStorageService> libHacService = new();
|
||||
|
||||
LibHac.Result resultCode = _libHacService.Get.CreateDeliveryCacheStorageServiceWithApplicationId(ref libHacService.Ref, new LibHac.ApplicationId(applicationId.Id));
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Ryujinx.Horizon.Bcat.Ipc
|
||||
[CmifCommand(0)]
|
||||
public Result CreateFileService(out IDeliveryCacheFileService service)
|
||||
{
|
||||
using SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheFileService> libHacService = new SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheFileService>();
|
||||
using SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheFileService> libHacService = new();
|
||||
|
||||
LibHac.Result resultCode = _libHacService.Get.CreateFileService(ref libHacService.Ref);
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Ryujinx.Horizon.Bcat.Ipc
|
||||
[CmifCommand(1)]
|
||||
public Result CreateDirectoryService(out IDeliveryCacheDirectoryService service)
|
||||
{
|
||||
using SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheDirectoryService> libHacService = new SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheDirectoryService>();
|
||||
using SharedRef<LibHac.Bcat.Impl.Ipc.IDeliveryCacheDirectoryService> libHacService = new();
|
||||
|
||||
LibHac.Result resultCode = _libHacService.Get.CreateDirectoryService(ref libHacService.Ref);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user