mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-08-02 10:37:09 +02:00
Completely remove static methods inside Ipc interfaces, also remove GetObject method from ServiceCtx as it is no longer needed with this change
This commit is contained in:
parent
27c4c4c56a
commit
24803ab413
5 changed files with 41 additions and 74 deletions
|
@ -32,21 +32,5 @@ namespace Ryujinx.OsHle
|
|||
this.RequestData = RequestData;
|
||||
this.ResponseData = ResponseData;
|
||||
}
|
||||
|
||||
public T GetObject<T>()
|
||||
{
|
||||
object Obj = null;
|
||||
|
||||
if (Session is HSessionObj SessionObj)
|
||||
{
|
||||
Obj = SessionObj.Obj;
|
||||
}
|
||||
if (Session is HDomain Dom)
|
||||
{
|
||||
Obj = Dom.GetObject(Request.DomObjId);
|
||||
}
|
||||
|
||||
return Obj is T ? (T)Obj : default(T);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue