Reflow single-line enum definitions

This commit is contained in:
YoshiRulz 2025-04-12 20:26:57 +10:00
parent cd699d7c52
commit 1983c9ce08
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
12 changed files with 81 additions and 12 deletions

View File

@ -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
{

View File

@ -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; }

View File

@ -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)
{

View File

@ -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; }

View File

@ -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;

View File

@ -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

View File

@ -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,

View File

@ -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;

View File

@ -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

View File

@ -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];

View File

@ -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
{

View File

@ -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);