Enable SA1106 and fix noncompliance
"Code should not contain empty statements" i.e. don't put a semicolon there
This commit is contained in:
parent
6f3f01125c
commit
b1e02fbdce
|
@ -18,7 +18,7 @@ namespace BizHawk.Client.Common.Miniz
|
|||
MZ_ZIP_FLAG_IGNORE_PATH = 0x0200,
|
||||
MZ_ZIP_FLAG_COMPRESSED_DATA = 0x0400,
|
||||
MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY = 0x0800
|
||||
};
|
||||
}
|
||||
|
||||
enum mz_compression_level : uint
|
||||
{
|
||||
|
@ -28,7 +28,7 @@ namespace BizHawk.Client.Common.Miniz
|
|||
MZ_UBER_COMPRESSION = 10,
|
||||
MZ_DEFAULT_LEVEL = 6,
|
||||
MZ_DEFAULT_COMPRESSION = unchecked((uint)-1)
|
||||
};
|
||||
}
|
||||
|
||||
[DllImport(DllName, CallingConvention = CC)]
|
||||
public static extern bool mz_zip_writer_init_file(IntPtr pZip, string pFilename, long size_to_reserve_at_beginning);
|
||||
|
|
|
@ -146,16 +146,16 @@ namespace BizHawk.Client.DiscoHawk
|
|||
public enum ChangeWindowMessageFilterFlags : uint
|
||||
{
|
||||
Add = 1, Remove = 2
|
||||
};
|
||||
}
|
||||
public enum MessageFilterInfo : uint
|
||||
{
|
||||
None = 0, AlreadyAllowed = 1, AlreadyDisAllowed = 2, AllowedHigher = 3
|
||||
};
|
||||
}
|
||||
|
||||
public enum ChangeWindowMessageFilterExAction : uint
|
||||
{
|
||||
Reset = 0, Allow = 1, DisAllow = 2
|
||||
};
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct CHANGEFILTERSTRUCT
|
||||
|
|
|
@ -225,7 +225,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
Syncpoint = 0x4e4be4adeeca4569,
|
||||
Index = 0x4e58dd672f23e64e,
|
||||
Info = 0x4e49ab68b596ba78
|
||||
};
|
||||
}
|
||||
|
||||
private MemoryStream _data;
|
||||
private readonly StartCode _startCode;
|
||||
|
|
|
@ -199,7 +199,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
private interface IMatcher
|
||||
{
|
||||
bool Matches(ListViewItem value);
|
||||
};
|
||||
}
|
||||
|
||||
private class SimpleMatcher : IMatcher
|
||||
{
|
||||
|
@ -217,7 +217,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private class RegExMatcher : IMatcher
|
||||
{
|
||||
|
@ -226,7 +226,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
return Matcher.IsMatch(value.Text);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private IMatcher CreateMatcher(string searchKey)
|
||||
{
|
||||
|
|
|
@ -686,7 +686,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
&& MovieSession.Movie.Mode != MovieMode.Play;
|
||||
|
||||
HardResetMenuItem.Enabled = Emulator.ControllerDefinition.BoolButtons.Contains("Power")
|
||||
&& MovieSession.Movie.Mode != MovieMode.Play;;
|
||||
&& MovieSession.Movie.Mode != MovieMode.Play;
|
||||
|
||||
PauseMenuItem.ShortcutKeyDisplayString = Config.HotkeyBindings["Pause"].Bindings;
|
||||
RebootCoreMenuItem.ShortcutKeyDisplayString = Config.HotkeyBindings["Reboot Core"].Bindings;
|
||||
|
|
|
@ -35,20 +35,20 @@ namespace BizHawk.Client.EmuHawk
|
|||
public string Button;
|
||||
public bool ValueBool;
|
||||
public float ValueFloat;
|
||||
};
|
||||
}
|
||||
|
||||
public enum LuaChangeTypes
|
||||
{
|
||||
InputChange,
|
||||
InsertFrames,
|
||||
DeleteFrames,
|
||||
};
|
||||
}
|
||||
|
||||
private enum InputChangeTypes
|
||||
{
|
||||
Bool,
|
||||
Float,
|
||||
};
|
||||
}
|
||||
|
||||
public class TastudioBranchInfo
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace BizHawk.Emulation.Cores.Arcades.MAME
|
|||
public enum OutputChannel
|
||||
{
|
||||
ERROR, WARNING, INFO, DEBUG, VERBOSE, LOG, COUNT
|
||||
};
|
||||
}
|
||||
|
||||
// main launcher
|
||||
[DllImport(dll, CallingConvention = cc)]
|
||||
|
|
|
@ -147,7 +147,7 @@ namespace BizHawk.Emulation.Cores.Components.I8048
|
|||
FetchOperand = 2,
|
||||
Data = 4,
|
||||
Write = 8
|
||||
};
|
||||
}
|
||||
|
||||
// Execute instructions
|
||||
public void ExecuteOne()
|
||||
|
|
|
@ -120,7 +120,7 @@ namespace BizHawk.Emulation.Cores.Components.LR35902
|
|||
FetchOperand = 2,
|
||||
Data = 4,
|
||||
Write = 8
|
||||
};
|
||||
}
|
||||
|
||||
// Execute instructions
|
||||
public void ExecuteOne(ref byte interrupt_src, byte interrupt_enable)
|
||||
|
|
|
@ -140,7 +140,7 @@ namespace BizHawk.Emulation.Cores.Components.MC6800
|
|||
FetchOperand = 2,
|
||||
Data = 4,
|
||||
Write = 8
|
||||
};
|
||||
}
|
||||
|
||||
// Execute instructions
|
||||
public void ExecuteOne()
|
||||
|
|
|
@ -149,7 +149,7 @@ namespace BizHawk.Emulation.Cores.Components.MC6809
|
|||
FetchOperand = 2,
|
||||
Data = 4,
|
||||
Write = 8
|
||||
};
|
||||
}
|
||||
|
||||
// Execute instructions
|
||||
public void ExecuteOne()
|
||||
|
@ -234,7 +234,7 @@ namespace BizHawk.Emulation.Cores.Components.MC6809
|
|||
Regs[reg_d_ad] = (ushort)((Regs[reg_h_ad] << 8) | Regs[reg_l_ad]);
|
||||
break;
|
||||
case JPE:
|
||||
if (!FlagE) { instr_pntr = 44; irq_pntr = 10; };
|
||||
if (!FlagE) { instr_pntr = 44; irq_pntr = 10; }
|
||||
break;
|
||||
case IDX_DCDE:
|
||||
Index_decode();
|
||||
|
|
|
@ -249,7 +249,7 @@ namespace BizHawk.Emulation.Cores.Components.W65816
|
|||
default:
|
||||
length = 1;
|
||||
return "???";
|
||||
};
|
||||
}
|
||||
|
||||
// Parse out parameter list
|
||||
switch (opcode)
|
||||
|
|
|
@ -3,8 +3,8 @@ using System.Runtime.InteropServices;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Components.x86
|
||||
{
|
||||
public interface x86CpuType { };
|
||||
public struct Intel8086 : x86CpuType { };
|
||||
public interface x86CpuType { }
|
||||
public struct Intel8086 : x86CpuType { }
|
||||
|
||||
public sealed partial class x86<CpuType> where CpuType : struct, x86CpuType
|
||||
{
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Vectrex
|
|||
ExecFirst = 0x01,
|
||||
ExecOperand = 0x02,
|
||||
Data = 0x04
|
||||
};
|
||||
}
|
||||
|
||||
private struct CDLog_MapResults
|
||||
{
|
||||
|
|
|
@ -45,7 +45,7 @@ namespace BizHawk.Emulation.Cores.Consoles.O2Hawk
|
|||
break;
|
||||
case "R2":
|
||||
cpu.Regs[2 + cpu.RB] = (byte)value;
|
||||
break; ;
|
||||
break;
|
||||
case "R3":
|
||||
cpu.Regs[3 + cpu.RB] = (byte)value;
|
||||
break;
|
||||
|
@ -57,7 +57,7 @@ namespace BizHawk.Emulation.Cores.Consoles.O2Hawk
|
|||
break;
|
||||
case "R6":
|
||||
cpu.Regs[6 + cpu.RB] = (byte)value;
|
||||
break; ;
|
||||
break;
|
||||
case "R7":
|
||||
cpu.Regs[7 + cpu.RB] = (byte)value;
|
||||
break;
|
||||
|
|
|
@ -125,7 +125,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
|||
vbagbnew,
|
||||
vbabgbold,
|
||||
gba
|
||||
};
|
||||
}
|
||||
|
||||
public static int[] GetLut(ColorType c)
|
||||
{
|
||||
|
|
|
@ -116,7 +116,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
|||
BG_PALETTE = 0,
|
||||
SP1_PALETTE = 1,
|
||||
SP2_PALETTE = 2
|
||||
};
|
||||
}
|
||||
|
||||
/// <param name="core">opaque state pointer</param>
|
||||
/// <param name="palnum">in [0, 2]: One of BG_PALETTE, SP1_PALETTE and SP2_PALETTE.</param>
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64.NativeApi
|
|||
M64ERR_SYSTEM_FAIL, /* A system function call, such as an SDL or file operation, failed */
|
||||
M64ERR_UNSUPPORTED, /* Function call is not supported (ie, core not built with debugger) */
|
||||
M64ERR_WRONG_TYPE /* A given input type parameter cannot be used for desired operation */
|
||||
};
|
||||
}
|
||||
|
||||
public enum m64p_plugin_type
|
||||
{
|
||||
|
@ -56,7 +56,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64.NativeApi
|
|||
M64PLUGIN_AUDIO,
|
||||
M64PLUGIN_INPUT,
|
||||
M64PLUGIN_CORE
|
||||
};
|
||||
}
|
||||
|
||||
private enum m64p_command
|
||||
{
|
||||
|
@ -83,7 +83,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64.NativeApi
|
|||
M64CMD_ADVANCE_FRAME,
|
||||
M64CMD_SET_VI_CALLBACK,
|
||||
M64CMD_SET_RENDER_CALLBACK
|
||||
};
|
||||
}
|
||||
|
||||
private enum m64p_dbg_bkp_command
|
||||
{
|
||||
|
@ -96,7 +96,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64.NativeApi
|
|||
M64P_BKP_CMD_ENABLE,
|
||||
M64P_BKP_CMD_DISABLE,
|
||||
M64P_BKP_CMD_CHECK
|
||||
};
|
||||
}
|
||||
|
||||
[Flags]
|
||||
private enum m64p_dbg_bkp_flags
|
||||
|
@ -108,7 +108,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64.NativeApi
|
|||
M64P_BPT_FLAG_WRITE = 0x10,
|
||||
M64P_BPT_FLAG_EXEC = 0x20,
|
||||
M64P_BPT_FLAG_LOG = 0x40
|
||||
};
|
||||
}
|
||||
|
||||
private enum m64p_dbg_state
|
||||
{
|
||||
|
@ -117,21 +117,21 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64.NativeApi
|
|||
M64P_DBG_NUM_BREAKPOINTS,
|
||||
M64P_DBG_CPU_DYNACORE,
|
||||
M64P_DBG_CPU_NEXT_INTERRUPT
|
||||
};
|
||||
}
|
||||
|
||||
private enum m64p_dbg_runstate
|
||||
{
|
||||
M64P_DBG_RUNSTATE_PAUSED = 0,
|
||||
M64P_DBG_RUNSTATE_STEPPING,
|
||||
M64P_DBG_RUNSTATE_RUNNING
|
||||
};
|
||||
}
|
||||
|
||||
public enum m64p_emu_state
|
||||
{
|
||||
M64EMU_STOPPED = 1,
|
||||
M64EMU_RUNNING,
|
||||
M64EMU_PAUSED
|
||||
};
|
||||
}
|
||||
|
||||
public enum m64p_type
|
||||
{
|
||||
|
@ -139,7 +139,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64.NativeApi
|
|||
M64TYPE_FLOAT,
|
||||
M64TYPE_BOOL,
|
||||
M64TYPE_STRING
|
||||
};
|
||||
}
|
||||
|
||||
public enum N64_MEMORY : uint
|
||||
{
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
enum EState
|
||||
{
|
||||
Off, Select, Ignore, Address, Read, Write
|
||||
};
|
||||
}
|
||||
EState State;
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -304,7 +304,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
RESET,
|
||||
/// <summary>nothing happening</summary>
|
||||
IDLE,
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// set cycleswaiting param after a state change
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
void ApplyCustomAudio(short[] samples);
|
||||
|
||||
Dictionary<string, string> InitialRegisterValues { get; set; }
|
||||
};
|
||||
}
|
||||
|
||||
[INESBoardImpl]
|
||||
public abstract class NESBoardBase : INESBoard
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
ExecFirst = 0x01,
|
||||
ExecOperand = 0x02,
|
||||
Data = 0x04
|
||||
};
|
||||
}
|
||||
|
||||
private struct CDLog_MapResults
|
||||
{
|
||||
|
|
|
@ -64,7 +64,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
NTSC,
|
||||
PAL,
|
||||
Dendy
|
||||
};
|
||||
}
|
||||
|
||||
public Region RegionOverride = Region.Default;
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
int preNMIlines;
|
||||
int postNMIlines;
|
||||
bool chopdot;
|
||||
public enum Region { NTSC, PAL, Dendy, RGB };
|
||||
public enum Region { NTSC, PAL, Dendy, RGB }
|
||||
Region _region;
|
||||
public Region region
|
||||
{
|
||||
|
|
|
@ -256,7 +256,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
v &= 1;
|
||||
fv &= 7;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public sealed class Reg_2000
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
{
|
||||
public byte nt, at;
|
||||
public byte pt_0, pt_1;
|
||||
};
|
||||
}
|
||||
|
||||
BGDataRecord[] bgdata = new BGDataRecord[34];
|
||||
|
||||
|
|
|
@ -159,7 +159,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
|
|||
CARTROM, CARTRAM, WRAM, APURAM,
|
||||
SGB_CARTROM, SGB_CARTRAM, SGB_WRAM, SGB_HRAM,
|
||||
NUM
|
||||
};
|
||||
}
|
||||
|
||||
public enum eTRACE : uint
|
||||
{
|
||||
|
@ -175,7 +175,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
|
|||
CPUData = 0x04,
|
||||
DMAData = 0x08, //not supported yet
|
||||
BRR = 0x80,
|
||||
};
|
||||
}
|
||||
|
||||
snes_video_refresh_t video_refresh;
|
||||
snes_input_poll_t input_poll;
|
||||
|
|
|
@ -70,14 +70,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
|
|||
eMessage_BRK_hook_read_smp,
|
||||
eMessage_BRK_hook_write_smp,
|
||||
eMessage_BRK_scanlineStart,
|
||||
};
|
||||
}
|
||||
|
||||
enum eStatus : int
|
||||
{
|
||||
eStatus_Idle,
|
||||
eStatus_CMD,
|
||||
eStatus_BRK
|
||||
};
|
||||
}
|
||||
|
||||
public enum SNES_INPUT_PORT : int
|
||||
{
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
BizHawk,
|
||||
BSNES,
|
||||
Snes9x
|
||||
};
|
||||
}
|
||||
|
||||
//I separated these out to try and make them lazy construct, but it didnt work. try it some other way later.
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ namespace BizHawk.Emulation.Cores.Sega.GGHawkLink
|
|||
ExecFirst = 0x01,
|
||||
ExecOperand = 0x02,
|
||||
Data = 0x04
|
||||
};
|
||||
}
|
||||
|
||||
private ICodeDataLog CDL;
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
|||
ExecFirst = 0x01,
|
||||
ExecOperand = 0x02,
|
||||
Data = 0x04
|
||||
};
|
||||
}
|
||||
|
||||
public struct CDLog_MapResults
|
||||
{
|
||||
|
|
|
@ -395,7 +395,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
|||
case 0x01: Port01 = value; break;
|
||||
case 0x02: Port02 = value; break;
|
||||
case 0x03: p3_write = true; Port03 = value; break;
|
||||
case 0x04: /*Port04 = value*/; break; // receive port, not sure what writing does
|
||||
case 0x04: /*Port04 = value;*/ break; // receive port, not sure what writing does
|
||||
case 0x05: Port05 = (byte)(value & 0xF8); break;
|
||||
case 0x06: PSG.Set_Panning(value); break;
|
||||
case 0x3E: Port3E = value; break;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
byte xCoord = 128;
|
||||
byte yCoord = 100;
|
||||
|
||||
enum Axis { XAxis, YAxis };
|
||||
enum Axis { XAxis, YAxis }
|
||||
Axis axis = Axis.XAxis;
|
||||
|
||||
|
||||
|
|
|
@ -357,7 +357,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
|||
{
|
||||
HIntPending = true;
|
||||
if (EnableLineInterrupts)
|
||||
{;
|
||||
{
|
||||
Cpu.FlagI = true;
|
||||
}
|
||||
lineIntLinesRemaining = Registers[0x0A];
|
||||
|
|
|
@ -185,7 +185,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
|||
Teamplayer,
|
||||
Wayplay,
|
||||
Mouse
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -97,7 +97,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
|||
SYSTEM_SPORTSPAD = 10, // Sega Sports Pad -- Master System
|
||||
SYSTEM_TEAMPLAYER = 11, // Multi Tap -- Sega TeamPlayer
|
||||
SYSTEM_WAYPLAY = 12, // Multi Tap -- EA 4-Way Play -- use both ports
|
||||
};
|
||||
}
|
||||
|
||||
public enum INPUT_DEVICE : byte
|
||||
{
|
||||
|
@ -113,13 +113,13 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
|||
DEVICE_TEREBI = 0x08, // Terebi Oekaki tablet
|
||||
DEVICE_XE_A1P = 0x09, // XE-A1P analog controller
|
||||
DEVICE_ACTIVATOR = 0x0a,// Activator
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public enum CDLog_AddrType
|
||||
{
|
||||
MDCART, RAM68k, RAMZ80, SRAM,
|
||||
};
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum CDLog_Flags
|
||||
|
@ -130,7 +130,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
|||
ExecZ80Operand = 0x10,
|
||||
DataZ80 = 0x20,
|
||||
DMASource = 0x40,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
|
@ -216,7 +216,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
|||
/* Menacer */
|
||||
INPUT_MENACER_TRIGGER = 0x0040,
|
||||
INPUT_MENACER_START = 0x0080,
|
||||
};
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public class InputData
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
public enum eShockStep
|
||||
{
|
||||
Frame
|
||||
};
|
||||
}
|
||||
|
||||
public enum eShockFramebufferFlags
|
||||
{
|
||||
|
@ -45,7 +45,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
GPURAM = 3, //512K
|
||||
SPURAM = 4, //512K
|
||||
DCache = 5 //1K
|
||||
};
|
||||
}
|
||||
|
||||
public enum eShockStateTransaction : int
|
||||
{
|
||||
|
@ -63,7 +63,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
Write = 2, //writes from the frontend to the memcard
|
||||
Read = 3, //reads from the memcard to the frontend. Also clears the dirty flag
|
||||
CheckDirty = 4, //checks whether the memcard is dirty
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public enum ePeripheralType : int
|
||||
|
@ -77,7 +77,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
NegCon = 4,
|
||||
|
||||
Multitap = 10,
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// this is implemented as an overall render type instead of a horizontal clip control
|
||||
|
@ -89,7 +89,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
Normal,
|
||||
ClipOverscan,
|
||||
Framebuffer
|
||||
};
|
||||
}
|
||||
|
||||
public enum eShockDeinterlaceMode : int
|
||||
{
|
||||
|
@ -120,7 +120,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
{
|
||||
public eRegion region;
|
||||
public unsafe fixed sbyte id[5]; //SCEI, SCEA, SCEE, etc. with null terminator
|
||||
};
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct ShockTOCTrack
|
||||
|
@ -128,7 +128,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
public byte adr;
|
||||
public byte control;
|
||||
public uint lba;
|
||||
};
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct ShockTOC
|
||||
|
@ -136,7 +136,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
public byte first_track;
|
||||
public byte last_track;
|
||||
public byte disc_type;
|
||||
};
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct ShockFramebufferInfo
|
||||
|
@ -145,7 +145,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
[MarshalAs(UnmanagedType.I4)]
|
||||
public eShockFramebufferFlags flags;
|
||||
public void* ptr;
|
||||
};
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct ShockRenderOptions
|
||||
|
@ -154,7 +154,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
public eShockRenderType renderType;
|
||||
public eShockDeinterlaceMode deinterlaceMode;
|
||||
public bool skip;
|
||||
};
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct ShockMemcardTransaction
|
||||
|
@ -162,7 +162,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
[MarshalAs(UnmanagedType.I4)]
|
||||
public eShockMemcardTransaction transaction;
|
||||
public void* buffer128k;
|
||||
};
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct ShockRegisters_CPU
|
||||
|
@ -172,7 +172,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
public uint IN_BD_SLOT;
|
||||
public uint LO, HI;
|
||||
public uint SR, CAUSE, EPC;
|
||||
};
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct ShockStateTransaction
|
||||
|
@ -181,7 +181,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
public void* buffer;
|
||||
public int bufferLength;
|
||||
public TextStateFPtrs ff;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
|
|
|
@ -134,7 +134,7 @@ namespace BizHawk.Emulation.Cores.WonderSwan
|
|||
PS = 12,
|
||||
SS = 13,
|
||||
DS0 = 14
|
||||
};
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum Buttons : uint
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
SIG_VideoUpdate,
|
||||
SIG_Sample,
|
||||
SIG_SampleBatch,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public enum RETRO_MEMORY
|
||||
|
@ -42,7 +42,7 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
RTC = 1,
|
||||
SYSTEM_RAM = 2,
|
||||
VIDEO_RAM = 3,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public enum RETRO_DEVICE
|
||||
|
@ -55,14 +55,14 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
ANALOG = 5,
|
||||
POINTER = 6,
|
||||
SENSOR_ACCELEROMETER = 7
|
||||
};
|
||||
}
|
||||
|
||||
public enum RETRO_DEVICE_ID_ANALOG
|
||||
{
|
||||
// LEFT / RIGHT?
|
||||
X = 0,
|
||||
Y = 1
|
||||
};
|
||||
}
|
||||
|
||||
public enum RETRO_DEVICE_ID_MOUSE
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
Y = 1,
|
||||
LEFT = 2,
|
||||
RIGHT = 3
|
||||
};
|
||||
}
|
||||
|
||||
public enum RETRO_DEVICE_ID_LIGHTGUN
|
||||
{
|
||||
|
@ -81,14 +81,14 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
TURBO = 4,
|
||||
PAUSE = 5,
|
||||
START = 6
|
||||
};
|
||||
}
|
||||
|
||||
public enum RETRO_DEVICE_ID_POINTER
|
||||
{
|
||||
X = 0,
|
||||
Y = 1,
|
||||
PRESSED = 2
|
||||
};
|
||||
}
|
||||
|
||||
public enum RETRO_KEY
|
||||
{
|
||||
|
@ -236,7 +236,7 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
UNDO = 322,
|
||||
|
||||
LAST
|
||||
};
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum RETRO_MOD
|
||||
|
@ -249,14 +249,14 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
NUMLOCK = 16,
|
||||
CAPSLOCK = 32,
|
||||
SCROLLLOCK = 64
|
||||
};
|
||||
}
|
||||
|
||||
public enum RETRO_DEVICE_ID_SENSOR_ACCELEROMETER
|
||||
{
|
||||
X = 0,
|
||||
Y = 1,
|
||||
Z = 2
|
||||
};
|
||||
}
|
||||
|
||||
public enum RETRO_DEVICE_ID_JOYPAD
|
||||
{
|
||||
|
@ -276,14 +276,14 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
R2 = 13,
|
||||
L3 = 14,
|
||||
R3 = 15
|
||||
};
|
||||
}
|
||||
|
||||
public enum eStatus : int
|
||||
{
|
||||
eStatus_Idle,
|
||||
eStatus_CMD,
|
||||
eStatus_BRK
|
||||
};
|
||||
}
|
||||
|
||||
public enum BufId : int
|
||||
{
|
||||
|
@ -303,13 +303,13 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
XRGB1555 = 0,
|
||||
XRGB8888 = 1,
|
||||
RGB565 = 2
|
||||
};
|
||||
}
|
||||
|
||||
public enum retro_region : uint
|
||||
{
|
||||
NTSC = 0,
|
||||
PAL = 1
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
public bool registered;
|
||||
};
|
||||
}
|
||||
|
||||
//perf callbacks
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace BizHawk.Emulation.Cores.Components
|
|||
Default = 0,
|
||||
VRC7 = 1,
|
||||
YMF281B = 2
|
||||
};
|
||||
}
|
||||
|
||||
public YM2413(ChipType type)
|
||||
{
|
||||
|
@ -301,7 +301,7 @@ namespace BizHawk.Emulation.Cores.Components
|
|||
static OPLL_PATCH[,] default_patch = new OPLL_PATCH[OPLL_TONE_NUM, (16 + 3) * 2];
|
||||
|
||||
/* Definition of envelope mode */
|
||||
public enum OPLL_EG_STATE { READY, ATTACK, DECAY, SUSHOLD, SUSTINE, RELEASE, SETTLE, FINISH };
|
||||
public enum OPLL_EG_STATE { READY, ATTACK, DECAY, SUSHOLD, SUSTINE, RELEASE, SETTLE, FINISH }
|
||||
|
||||
/* Phase incr table for Attack */
|
||||
static uint[,] dphaseARTable = new uint[16, 16];
|
||||
|
|
|
@ -123,7 +123,7 @@ namespace BizHawk.Emulation.DiscSystem
|
|||
public byte first_track;
|
||||
public byte last_track;
|
||||
public byte disc_type;
|
||||
};
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public struct MednadiscTOCTrack
|
||||
|
@ -136,7 +136,7 @@ namespace BizHawk.Emulation.DiscSystem
|
|||
[FieldOffset(8)] public byte _validByte;
|
||||
|
||||
public bool Valid { get { return _validByte != 0; } }
|
||||
};
|
||||
}
|
||||
|
||||
[DllImport("mednadisc.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern IntPtr mednadisc_LoadCD(string path);
|
||||
|
|
|
@ -58,5 +58,5 @@ namespace BizHawk.Emulation.DiscSystem
|
|||
|
||||
class DiscJobAbortException : Exception
|
||||
{
|
||||
};
|
||||
}
|
||||
}
|
|
@ -190,7 +190,7 @@ namespace BizHawk.Bizware.BizwareGL
|
|||
public int height;
|
||||
|
||||
public RectItem ri;
|
||||
};
|
||||
}
|
||||
|
||||
/// Starts a new packing process to a bin of the given dimension.
|
||||
public void Init(int width, int height)
|
||||
|
@ -317,7 +317,7 @@ namespace BizHawk.Bizware.BizwareGL
|
|||
node.height = height;
|
||||
return node;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -80,9 +80,6 @@
|
|||
<!-- Prefix local calls with this -->
|
||||
<Rule Id="SA1101" Action="Hidden" />
|
||||
|
||||
<!-- Code should not contain empty statements -->
|
||||
<Rule Id="SA1106" Action="Hidden" />
|
||||
|
||||
<!-- Code should not contain multiple statements on one line -->
|
||||
<Rule Id="SA1107" Action="Hidden" />
|
||||
|
||||
|
|
Loading…
Reference in New Issue