2018-02-04 23:08:20 +00:00
|
|
|
using ChocolArm64.Memory;
|
2018-06-11 01:46:42 +01:00
|
|
|
using Ryujinx.HLE.OsHle.Handles;
|
|
|
|
using Ryujinx.HLE.OsHle.Ipc;
|
2018-02-04 23:08:20 +00:00
|
|
|
using System.IO;
|
|
|
|
|
2018-06-11 01:46:42 +01:00
|
|
|
namespace Ryujinx.HLE.OsHle
|
2018-02-04 23:08:20 +00:00
|
|
|
{
|
|
|
|
class ServiceCtx
|
|
|
|
{
|
2018-02-10 13:24:16 +00:00
|
|
|
public Switch Ns { get; private set; }
|
2018-03-12 04:04:52 +00:00
|
|
|
public Process Process { get; private set; }
|
2018-02-04 23:08:20 +00:00
|
|
|
public AMemory Memory { get; private set; }
|
2018-03-19 18:58:46 +00:00
|
|
|
public KSession Session { get; private set; }
|
2018-02-04 23:08:20 +00:00
|
|
|
public IpcMessage Request { get; private set; }
|
|
|
|
public IpcMessage Response { get; private set; }
|
|
|
|
public BinaryReader RequestData { get; private set; }
|
|
|
|
public BinaryWriter ResponseData { get; private set; }
|
|
|
|
|
|
|
|
public ServiceCtx(
|
|
|
|
Switch Ns,
|
2018-03-12 04:04:52 +00:00
|
|
|
Process Process,
|
2018-02-04 23:08:20 +00:00
|
|
|
AMemory Memory,
|
2018-03-19 18:58:46 +00:00
|
|
|
KSession Session,
|
2018-02-04 23:08:20 +00:00
|
|
|
IpcMessage Request,
|
|
|
|
IpcMessage Response,
|
|
|
|
BinaryReader RequestData,
|
|
|
|
BinaryWriter ResponseData)
|
|
|
|
{
|
|
|
|
this.Ns = Ns;
|
2018-03-12 04:04:52 +00:00
|
|
|
this.Process = Process;
|
2018-02-04 23:08:20 +00:00
|
|
|
this.Memory = Memory;
|
|
|
|
this.Session = Session;
|
|
|
|
this.Request = Request;
|
|
|
|
this.Response = Response;
|
|
|
|
this.RequestData = RequestData;
|
|
|
|
this.ResponseData = ResponseData;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|