misc: chore: Fix object creation in Horizon

This commit is contained in:
Evan Husted
2025-01-26 15:19:33 -06:00
parent 5fad450027
commit 742083ae3d
9 changed files with 14 additions and 14 deletions

View File

@@ -48,7 +48,7 @@ namespace Ryujinx.Horizon.Sdk.Sf.Cmif
int[] inObjectIds = new int[inHeader.ObjectsCount];
DomainServiceObjectProcessor domainProcessor = new DomainServiceObjectProcessor(domain, inObjectIds);
DomainServiceObjectProcessor domainProcessor = new(domain, inObjectIds);
if (context.Processor == null)
{

View File

@@ -230,7 +230,7 @@ namespace Ryujinx.Horizon.Sdk.Sf.Cmif
return null;
}
Domain domain = new Domain(this);
Domain domain = new(this);
_domains.Add(domain);
return domain;
}

View File

@@ -186,7 +186,7 @@ namespace Ryujinx.Horizon.Sdk.Sf.Hipc
{
CommandType commandType = GetCmifCommandType(inMessage);
using ScopedInlineContextChange _ = new ScopedInlineContextChange(GetInlineContext(commandType, inMessage));
using ScopedInlineContextChange _ = new(GetInlineContext(commandType, inMessage));
return commandType switch
{
@@ -282,7 +282,7 @@ namespace Ryujinx.Horizon.Sdk.Sf.Hipc
return HipcResult.InvalidRequestSize;
}
ServiceDispatchContext dispatchCtx = new ServiceDispatchContext
ServiceDispatchContext dispatchCtx = new()
{
ServiceObject = objectHolder.ServiceObject,
Manager = this,