Fix some code flagged by StyleCop

SA1106 x4, SA1113 x2, SA1142 x2, SA1206
This commit is contained in:
YoshiRulz 2020-05-19 23:33:16 +10:00
parent c96a233d5d
commit 7613748390
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
7 changed files with 9 additions and 11 deletions

View File

@ -23,7 +23,7 @@ namespace BizHawk.Client.Common
_type.ControlsFromLog = groups
.Select(group => group.Split(new[] { "|" }, StringSplitOptions.RemoveEmptyEntries).ToList())
.ToList();;
.ToList();
}
}

View File

@ -22,7 +22,7 @@ namespace BizHawk.Client.EmuHawk
private static readonly List<OTK_GamePad> Devices = new List<OTK_GamePad>();
volatile static bool initialized = false;
private static volatile bool initialized = false;
/// <remarks>Initialization is only called once when MainForm loads</remarks>
public static void Initialize()

View File

@ -947,9 +947,9 @@ namespace BizHawk.Client.EmuHawk
var floats = Input.Instance.GetAxisValues();
foreach (var f in Input.Instance.GetAxisValues())
{
if (f.Item1 == "WMouse X")
if (f.AxisID == "WMouse X")
mouseX = f;
else if (f.Item1 == "WMouse Y")
else if (f.AxisID == "WMouse Y")
mouseY = f;
else conInput.AcceptNewAxes(f);
}

View File

@ -17,8 +17,7 @@ namespace BizHawk.Client.EmuHawk
public override string Name => "savestate";
[LuaMethodExample("savestate.load( \"C:\\state.bin\" );")]
[LuaMethod("load"
, "Loads a savestate with the given path. If EmuHawk is deferring quicksaves, to TAStudio for example, that form will do what it likes (and the path is ignored).")]
[LuaMethod("load", "Loads a savestate with the given path. If EmuHawk is deferring quicksaves, to TAStudio for example, that form will do what it likes (and the path is ignored).")]
public void Load(string path, bool suppressOSD = false)
{
// TODO: find a non-global way to access LuaImp from Lua libraries!
@ -37,8 +36,7 @@ namespace BizHawk.Client.EmuHawk
}
[LuaMethodExample("savestate.loadslot( 7 );")]
[LuaMethod("loadslot"
, "Loads the savestate at the given slot number (must be an integer between 0 and 9). If EmuHawk is deferring quicksaves, to TAStudio for example, that form will do what it likes with the slot number.")]
[LuaMethod("loadslot", "Loads the savestate at the given slot number (must be an integer between 0 and 9). If EmuHawk is deferring quicksaves, to TAStudio for example, that form will do what it likes with the slot number.")]
public void LoadSlot(int slotNum, bool suppressOSD = false)
{
// TODO: find a non-global way to access LuaImp from Lua libraries!

View File

@ -16,7 +16,7 @@ namespace BizHawk.Emulation.Cores.Arcades.MAME
public enum SaveError
{
NONE, NOT_FOUND, ILLEGAL_REGISTRATIONS, INVALID_HEADER, READ_ERROR, WRITE_ERROR, DISABLED
};
}
// main launcher
[DllImport(dll, CallingConvention = cc)]

View File

@ -714,7 +714,7 @@ namespace BizHawk.Emulation.Cores.Components.M6502
rdy_freeze = !RDY;
if (RDY)
{
_link.DummyReadMemory(PC); ; Y--; NZ_Y();
_link.DummyReadMemory(PC); Y--; NZ_Y();
}
}
void Imp_INX()

View File

@ -88,7 +88,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
WATCHPOINT_READ = 2,
WATCHPOINT_RW = 3,
WATCHPOINT_WRITE_CHANGE = 4,
};
}
[StructLayout(LayoutKind.Sequential)]
public class OverrideInfo