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