From 5986a035439e691f487a770af36899de5d56f3ee Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 1 Jul 2017 17:18:55 -0500 Subject: [PATCH] refactorer in chief moved VsyncNumerator from a corecomm field to an interface property and then made it throw invalid operation exceptions on types where it doesnt make sense because thats just what you have to do when you choose to use interfaces, but users dont know whether it makes sense to call that. so return 0 instead of throwing exceptions. (should fix crashes dumping AVI with OSD captured) --- BizHawk.Client.Common/BitmapBufferVideoProvider.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/BizHawk.Client.Common/BitmapBufferVideoProvider.cs b/BizHawk.Client.Common/BitmapBufferVideoProvider.cs index 686444bce4..1c039b23e4 100644 --- a/BizHawk.Client.Common/BitmapBufferVideoProvider.cs +++ b/BizHawk.Client.Common/BitmapBufferVideoProvider.cs @@ -35,14 +35,8 @@ namespace BizHawk.Client.Common public int BackgroundColor => 0; - public int VsyncNumerator - { - get { throw new InvalidOperationException(); } - } + public int VsyncNumerator => 0; - public int VsyncDenominator - { - get { throw new InvalidOperationException(); } - } + public int VsyncDenominator => 0; } }