diff options
Diffstat (limited to 'Ryujinx.HLE/HOS/Horizon.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Horizon.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Ryujinx.HLE/HOS/Horizon.cs b/Ryujinx.HLE/HOS/Horizon.cs index 7f7fd4c6..d9dfb4b2 100644 --- a/Ryujinx.HLE/HOS/Horizon.cs +++ b/Ryujinx.HLE/HOS/Horizon.cs @@ -66,6 +66,8 @@ namespace Ryujinx.HLE.HOS internal Switch Device { get; private set; } + internal SurfaceFlinger SurfaceFlinger { get; private set; } + public SystemStateMgr State { get; private set; } internal bool KernelInitialized { get; private set; } @@ -268,6 +270,8 @@ namespace Ryujinx.HLE.HOS DatabaseImpl.Instance.InitializeDatabase(device); HostSyncpoint = new NvHostSyncpt(device); + + SurfaceFlinger = new SurfaceFlinger(device); } public void LoadCart(string exeFsDir, string romFsFile = null) @@ -850,6 +854,8 @@ namespace Ryujinx.HLE.HOS { _isDisposed = true; + SurfaceFlinger.Dispose(); + KProcess terminationProcess = new KProcess(this); KThread terminationThread = new KThread(this); @@ -873,12 +879,6 @@ namespace Ryujinx.HLE.HOS terminationThread.Start(); - // Signal the vsync event to avoid issues of KThread waiting on it. - if (Device.EnableDeviceVsync) - { - Device.VsyncEvent.Set(); - } - // Destroy nvservices channels as KThread could be waiting on some user events. // This is safe as KThread that are likely to call ioctls are going to be terminated by the post handler hook on the SVC facade. INvDrvServices.Destroy(); |
