aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/IpcService.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2021-03-19 00:31:08 +0100
committerGitHub <noreply@github.com>2021-03-19 00:31:08 +0100
commit39899c04076a8e9004b173320ffbb6dbf45ff3e4 (patch)
tree36b5cdcceb2812349bd109afe65daa5c00be8d41 /Ryujinx.HLE/HOS/Services/IpcService.cs
parenta8c945f35fceab2b735afb6b825b327032468e84 (diff)
IPC: Remove IIpcService interface (#2121)
This PR remove the IIpcService.cs interface usage which isn't needed anymore since the interface is only used by IpcService class. We can use it directly.
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/IpcService.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/IpcService.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Ryujinx.HLE/HOS/Services/IpcService.cs b/Ryujinx.HLE/HOS/Services/IpcService.cs
index f9858107..095e332c 100644
--- a/Ryujinx.HLE/HOS/Services/IpcService.cs
+++ b/Ryujinx.HLE/HOS/Services/IpcService.cs
@@ -9,7 +9,7 @@ using System.Linq;
namespace Ryujinx.HLE.HOS.Services
{
- abstract class IpcService : IIpcService
+ abstract class IpcService
{
public IReadOnlyDictionary<int, MethodInfo> Commands { get; }
@@ -55,7 +55,7 @@ namespace Ryujinx.HLE.HOS.Services
public void CallMethod(ServiceCtx context)
{
- IIpcService service = this;
+ IpcService service = this;
if (_isDomain)
{
@@ -173,7 +173,7 @@ namespace Ryujinx.HLE.HOS.Services
{
int objId = context.Request.ObjectIds[index];
- IIpcService obj = _parent.GetObject(objId);
+ IpcService obj = _parent.GetObject(objId);
return obj is T t ? t : null;
}
@@ -190,7 +190,7 @@ namespace Ryujinx.HLE.HOS.Services
return false;
}
- private int Add(IIpcService obj)
+ private int Add(IpcService obj)
{
return _domainObjects.Add(obj);
}
@@ -207,9 +207,9 @@ namespace Ryujinx.HLE.HOS.Services
return obj != null;
}
- private IIpcService GetObject(int id)
+ private IpcService GetObject(int id)
{
- return _domainObjects.GetData<IIpcService>(id);
+ return _domainObjects.GetData<IpcService>(id);
}
public void SetParent(IpcService parent)