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