Fix some code flagged by StyleCop
SA1106 x4, SA1113 x2, SA1142 x2, SA1206
This commit is contained in:
parent
c96a233d5d
commit
7613748390
|
@ -23,7 +23,7 @@ namespace BizHawk.Client.Common
|
|||
|
||||
_type.ControlsFromLog = groups
|
||||
.Select(group => group.Split(new[] { "|" }, StringSplitOptions.RemoveEmptyEntries).ToList())
|
||||
.ToList();;
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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!
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue