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