mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-09-09 11:36:28 -05: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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user