diff options
Diffstat (limited to 'Ryujinx.HLE/Switch.cs')
-rw-r--r-- | Ryujinx.HLE/Switch.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.HLE/Switch.cs b/Ryujinx.HLE/Switch.cs index 67559f45..8ea595e8 100644 --- a/Ryujinx.HLE/Switch.cs +++ b/Ryujinx.HLE/Switch.cs @@ -28,6 +28,8 @@ namespace Ryujinx.HLE public bool EnableDeviceVsync { get; set; } = true; + public bool IsFrameAvailable => Gpu.Window.IsFrameAvailable; + public Switch(HLEConfiguration configuration) { if (configuration.GpuRenderer == null) @@ -115,7 +117,7 @@ namespace Ryujinx.HLE return Gpu.Window.ConsumeFrameAvailable(); } - public void PresentFrame(Action swapBuffersCallback) + public void PresentFrame(Action<object> swapBuffersCallback) { Gpu.Window.Present(swapBuffersCallback); } |