| 123456789101112131415161718192021222324252627282930 |
- using System;
- namespace Ryujinx.Core.OsHle.Handles
- {
- class HSessionObj : HSession, IDisposable
- {
- 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();
- }
- }
- }
- }
- }
|