0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-27 03:05:49 +00:00
ryujinx-fork/Ryujinx/OsHle/Handles/HSessionObj.cs

30 lines
637 B
C#
Raw Normal View History

using System;
2018-02-04 23:08:20 +00:00
namespace Ryujinx.OsHle.Handles
{
class HSessionObj : HSession, IDisposable
2018-02-04 23:08:20 +00:00
{
public object Obj { get; private set; }
public HSessionObj(HSession Session, object Obj) : base(Session)
{
this.Obj = Obj;
}
public void Dispose()
{
Dispose(true);
}
protected virtual void Dispose(bool Disposing)
{
if (Disposing && Obj != null)
{
if (Obj is IDisposable DisposableObj)
{
DisposableObj.Dispose();
}
}
}
2018-02-04 23:08:20 +00:00
}
}