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