2018-02-25 01:34:16 -03:00
|
|
|
using Ryujinx.Core.OsHle.IpcServices;
|
|
|
|
|
2018-02-20 17:09:23 -03:00
|
|
|
namespace Ryujinx.Core.OsHle.Handles
|
2018-02-04 20:08:20 -03:00
|
|
|
{
|
|
|
|
class HSession
|
|
|
|
{
|
2018-02-25 01:34:16 -03:00
|
|
|
public IIpcService Service { get; private set; }
|
2018-02-04 20:08:20 -03:00
|
|
|
|
|
|
|
public bool IsInitialized { get; private set; }
|
|
|
|
|
|
|
|
public int State { get; set; }
|
|
|
|
|
2018-02-25 01:34:16 -03:00
|
|
|
public HSession(IIpcService Service)
|
2018-02-04 20:08:20 -03:00
|
|
|
{
|
2018-02-25 01:34:16 -03:00
|
|
|
this.Service = Service;
|
2018-02-04 20:08:20 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
public HSession(HSession Session)
|
|
|
|
{
|
2018-02-25 01:34:16 -03:00
|
|
|
Service = Session.Service;
|
2018-02-04 20:08:20 -03:00
|
|
|
IsInitialized = Session.IsInitialized;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Initialize()
|
|
|
|
{
|
|
|
|
IsInitialized = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|