Reflow single-line enum definitions
This commit is contained in:
parent
cd699d7c52
commit
1983c9ce08
|
@ -8,7 +8,13 @@ using BizHawk.Emulation.Common;
|
|||
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public enum MovieEndAction { Stop, Pause, Record, Finish }
|
||||
public enum MovieEndAction
|
||||
{
|
||||
Stop,
|
||||
Pause,
|
||||
Record,
|
||||
Finish,
|
||||
}
|
||||
|
||||
public class MovieSession : IMovieSession
|
||||
{
|
||||
|
|
|
@ -18,7 +18,13 @@ namespace BizHawk.Client.EmuHawk
|
|||
StartLocation = new Point(-1, -1);
|
||||
}
|
||||
|
||||
public enum InputType { Hex, Unsigned, Signed, Text }
|
||||
public enum InputType
|
||||
{
|
||||
Hex,
|
||||
Unsigned,
|
||||
Signed,
|
||||
Text,
|
||||
}
|
||||
|
||||
public Point StartLocation { get; set; }
|
||||
public InputType TextInputType { get; set; }
|
||||
|
|
|
@ -5,7 +5,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
public class LuaAutocompleteInstaller
|
||||
{
|
||||
public enum TextEditors { Sublime2, NotePad }
|
||||
public enum TextEditors
|
||||
{
|
||||
Sublime2,
|
||||
NotePad,
|
||||
}
|
||||
|
||||
public bool IsInstalled(TextEditors editor)
|
||||
{
|
||||
|
|
|
@ -13,7 +13,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
public sealed class WatchEditor : Form
|
||||
{
|
||||
public enum Mode { New, Duplicate, Edit }
|
||||
public enum Mode
|
||||
{
|
||||
New,
|
||||
Duplicate,
|
||||
Edit,
|
||||
}
|
||||
|
||||
public Emu.IMemoryDomains MemoryDomains { get; set; }
|
||||
|
||||
|
|
|
@ -4,7 +4,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
{
|
||||
internal sealed class Mapper030 : NesBoardBase
|
||||
{
|
||||
private enum flashmode { fm_default, fm_erase, fm_write, fm_id }
|
||||
private enum flashmode
|
||||
{
|
||||
fm_default,
|
||||
fm_erase,
|
||||
fm_write,
|
||||
fm_id,
|
||||
}
|
||||
|
||||
// config
|
||||
private int prg_bank_mask_16k;
|
||||
|
|
|
@ -12,7 +12,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
private int preNMIlines;
|
||||
private int postNMIlines;
|
||||
private bool chopdot;
|
||||
public enum Region { NTSC, PAL, Dendy, RGB }
|
||||
|
||||
public enum Region
|
||||
{
|
||||
NTSC,
|
||||
PAL,
|
||||
Dendy,
|
||||
RGB,
|
||||
}
|
||||
|
||||
private Region _region;
|
||||
public Region region
|
||||
|
|
|
@ -9,7 +9,12 @@ using BizHawk.Emulation.DiscSystem;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.PCEngine
|
||||
{
|
||||
public enum NecSystemType { TurboGrafx, TurboCD, SuperGrafx }
|
||||
public enum NecSystemType
|
||||
{
|
||||
TurboGrafx,
|
||||
TurboCD,
|
||||
SuperGrafx,
|
||||
}
|
||||
|
||||
[Core(CoreNames.PceHawk, "Vecna")]
|
||||
public sealed partial class PCEngine : IEmulator, ISaveRam, IInputPollable, IVideoLogicalOffsets, IRomInfo,
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
private byte xCoord = 128;
|
||||
private byte yCoord = 100;
|
||||
|
||||
private enum Axis { XAxis, YAxis }
|
||||
private enum Axis
|
||||
{
|
||||
XAxis,
|
||||
YAxis,
|
||||
}
|
||||
|
||||
private Axis axis = Axis.XAxis;
|
||||
|
||||
|
|
|
@ -4,7 +4,11 @@ using BizHawk.Emulation.Cores.Components.Z80A;
|
|||
|
||||
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||
{
|
||||
public enum VdpMode { SMS, GameGear }
|
||||
public enum VdpMode
|
||||
{
|
||||
SMS,
|
||||
GameGear,
|
||||
}
|
||||
|
||||
// Emulates the Texas Instruments TMS9918 VDP.
|
||||
public partial class VDP : IVideoProvider
|
||||
|
|
|
@ -293,7 +293,17 @@ namespace BizHawk.Emulation.Cores.Components
|
|||
private static readonly 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 */
|
||||
private static readonly uint[,] dphaseARTable = new uint[16, 16];
|
||||
|
|
|
@ -16,7 +16,13 @@ namespace BizHawk.Tests.Testroms.GB
|
|||
{
|
||||
public static class GBHelper
|
||||
{
|
||||
public enum ConsoleVariant { CGB_C, CGB_D, DMG, DMG_B }
|
||||
public enum ConsoleVariant
|
||||
{
|
||||
CGB_C,
|
||||
CGB_D,
|
||||
DMG,
|
||||
DMG_B,
|
||||
}
|
||||
|
||||
public readonly struct CoreSetup
|
||||
{
|
||||
|
|
|
@ -11,7 +11,13 @@ namespace BizHawk.Tests.Testroms.GB
|
|||
{
|
||||
public static class TestUtils
|
||||
{
|
||||
public enum TestSuccessState { ExpectedFailure, Failure, Success, UnexpectedSuccess }
|
||||
public enum TestSuccessState
|
||||
{
|
||||
ExpectedFailure,
|
||||
Failure,
|
||||
Success,
|
||||
UnexpectedSuccess,
|
||||
}
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
private static extern uint SetDllDirectory(string lpPathName);
|
||||
|
|
Loading…
Reference in New Issue