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)

This commit is contained in:
zeromus 2017-07-01 17:18:55 -05:00
parent 8a13ab1719
commit 5986a03543
1 changed files with 2 additions and 8 deletions

View File

@ -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;
}
}