Enable SA1410 and fix noncompliance
"Remove delegate parenthesis when possible"
This commit is contained in:
parent
dcae34ce47
commit
0a3cb5f23f
|
@ -466,9 +466,6 @@
|
|||
<!-- Conditional expressions should declare precedence -->
|
||||
<Rule Id="SA1408" Action="Hidden" />
|
||||
|
||||
<!-- Remove delegate parenthesis when possible -->
|
||||
<Rule Id="SA1410" Action="Hidden" />
|
||||
|
||||
<!-- Use trailing comma in multi-line initializers -->
|
||||
<Rule Id="SA1413" Action="Hidden" />
|
||||
</Rules>
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace BizHawk.Emulation.Cores.Components.I8048
|
|||
public bool TimIntEn;
|
||||
public bool INT_MSTR;
|
||||
|
||||
public Action IRQCallback = delegate () { };
|
||||
public Action IRQCallback = () => {};
|
||||
|
||||
private void ResetInterrupts()
|
||||
{
|
||||
|
|
|
@ -49,8 +49,8 @@ namespace BizHawk.Emulation.Cores.Components.MC6800
|
|||
public bool NMIPending;
|
||||
public bool IRQPending;
|
||||
|
||||
public Action IRQCallback = delegate () { };
|
||||
public Action NMICallback = delegate () { };
|
||||
public Action IRQCallback = () => {};
|
||||
public Action NMICallback = () => {};
|
||||
|
||||
private void ResetInterrupts()
|
||||
{
|
||||
|
|
|
@ -78,9 +78,9 @@ namespace BizHawk.Emulation.Cores.Components.MC6809
|
|||
public bool IRQPending;
|
||||
public bool IN_SYNC;
|
||||
|
||||
public Action IRQCallback = delegate () { };
|
||||
public Action FIRQCallback = delegate () { };
|
||||
public Action NMICallback = delegate () { };
|
||||
public Action IRQCallback = () => {};
|
||||
public Action FIRQCallback = () => {};
|
||||
public Action NMICallback = () => {};
|
||||
|
||||
private void ResetInterrupts()
|
||||
{
|
||||
|
|
|
@ -34,12 +34,12 @@ namespace BizHawk.Emulation.Cores.Components.Z80A
|
|||
set { if (value < 0 || value > 2) throw new ArgumentOutOfRangeException(); interruptMode = value; }
|
||||
}
|
||||
|
||||
public Action IRQCallback = delegate () { };
|
||||
public Action NMICallback = delegate () { };
|
||||
public Action IRQCallback = () => {};
|
||||
public Action NMICallback = () => {};
|
||||
|
||||
// this will be a few cycles off for now
|
||||
// it should suffice for now until Alyosha returns from hiatus
|
||||
public Action IRQACKCallback = delegate () { };
|
||||
public Action IRQACKCallback = () => {};
|
||||
|
||||
private void NMI_()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue