Refactor IPC services to have commands into separate classes, fix readme url

This commit is contained in:
gdkchan 2018-02-25 01:34:16 -03:00
parent a4ff0d3484
commit fba0bf8732
73 changed files with 825 additions and 583 deletions

View file

@ -1,21 +1,23 @@
using Ryujinx.Core.OsHle.IpcServices;
namespace Ryujinx.Core.OsHle.Handles
{
class HSession
{
public string ServiceName { get; private set; }
public IIpcService Service { get; private set; }
public bool IsInitialized { get; private set; }
public int State { get; set; }
public HSession(string ServiceName)
public HSession(IIpcService Service)
{
this.ServiceName = ServiceName;
this.Service = Service;
}
public HSession(HSession Session)
{
ServiceName = Session.ServiceName;
Service = Session.Service;
IsInitialized = Session.IsInitialized;
}