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:
parent
8a13ab1719
commit
5986a03543
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue