Reflow and add trailing commas to enum definitions

This commit is contained in:
YoshiRulz 2025-03-28 13:57:06 +10:00
parent 4c76aeba8a
commit dcd78b4107
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
55 changed files with 127 additions and 71 deletions

View File

@ -40,7 +40,7 @@ namespace BizHawk.Bizware.Graphics
Nvida,
Amd,
Intel,
Unknown
Unknown,
}
// Avoid old Intel gpus, these have been reported crashing with gl interop

View File

@ -8,6 +8,6 @@ namespace BizHawk.Bizware.Input
None = 0,
Mouse = 1,
Keyboard = 2,
Pad = 4
Pad = 4,
}
}

View File

@ -619,6 +619,6 @@ namespace BizHawk.Bizware.Input
NumPadEnter,
/// <summary>Indicates a key which is not present in this enum</summary>
Unknown = unchecked((int) 0xFFFFFFFF)
Unknown = unchecked((int) 0xFFFFFFFF),
}
}

View File

@ -12,7 +12,9 @@ namespace BizHawk.Client.Common.FilterManager
{
public enum SurfaceDisposition
{
Unspecified, Texture, RenderTarget
Unspecified,
Texture,
RenderTarget,
}
public class SurfaceFormat
@ -60,7 +62,7 @@ namespace BizHawk.Client.Common.FilterManager
{
Run,
NewTarget,
FinalTarget
FinalTarget,
}
//services to filters:

View File

@ -171,7 +171,8 @@ namespace BizHawk.Client.Common.Filters
public enum SurfaceDirection
{
Input, Output
Input,
Output,
}
}
}

View File

@ -273,7 +273,9 @@ namespace BizHawk.Client.Common.Filters
{
public enum eFilterOption
{
None, Bilinear, Bicubic
None,
Bilinear,
Bicubic,
}
public eFilterOption FilterOption = eFilterOption.None;

View File

@ -204,7 +204,10 @@ namespace BizHawk.Client.Common.Filters
public enum ScaleType
{
NotSet, Source, Viewport, Absolute
NotSet,
Source,
Viewport,
Absolute,
}
public class ShaderPass

View File

@ -79,7 +79,7 @@ namespace BizHawk.Client.Common
BI_RLE4 = 2,
BI_BITFIELDS = 3,
BI_JPEG = 4,
BI_PNG = 5
BI_PNG = 5,
}
private static unsafe byte[] GetBytes(object o)

View File

@ -65,7 +65,10 @@ namespace BizHawk.Client.Common
public enum LoadErrorType
{
Unknown, MissingFirmware, Xml, DiscError
Unknown,
MissingFirmware,
Xml,
DiscError,
}
// helper methods for the settings events

View File

@ -5,7 +5,7 @@
LegacyDirectSound, // kept here to handle old configs
XAudio2,
OpenAL,
Dummy
Dummy,
}
public enum EDispManagerAR
@ -18,7 +18,8 @@
public enum SaveStateType
{
Binary, Text
Binary,
Text,
}
public enum ClientProfile
@ -27,7 +28,7 @@
Casual = 1,
Longplay = 2,
Tas = 3,
N64Tas = 4
N64Tas = 4,
}
/// <summary>

View File

@ -11,7 +11,7 @@
TopLeft = 0,
TopRight = 1,
BottomLeft = 2,
BottomRight = 3
BottomRight = 3,
}
public MessagePosition Clone() => (MessagePosition)MemberwiseClone();

View File

@ -20,7 +20,8 @@ namespace BizHawk.Client.Common
public enum InputEventType
{
Press, Release
Press,
Release,
}
public struct LogicalButton

View File

@ -4,6 +4,6 @@ namespace BizHawk.Client.Common
{
None = 0,
All = 1,
OnlyController = 2
OnlyController = 2,
}
}

View File

@ -43,7 +43,9 @@ namespace BizHawk.Client.Common
public enum RunState
{
Disabled, Running, Paused
Disabled,
Running,
Paused,
}
public RunState State { get; set; }

View File

@ -16,7 +16,7 @@ namespace BizHawk.Client.Common
{
MIC = 1,
RESET = 2,
LID = 4
LID = 4,
}
private bool _lidOpen = true;

View File

@ -24,7 +24,7 @@ namespace BizHawk.Client.Common
/// <summary>
/// The movie has played past the end, but is still loaded in memory
/// </summary>
Finished
Finished,
}
// TODO: message callback / event handler

View File

@ -12,7 +12,7 @@ namespace BizHawk.Client.Common
GreaterThanOrEqual,
LessThan,
LessThanOrEqual,
NotEqual
NotEqual,
}
private readonly Watch _watch;

View File

@ -17,7 +17,7 @@
/// Called after a frame emulates
/// </summary>
PostFrame,
FastPostFrame
FastPostFrame,
}
public interface IToolForm

View File

@ -2,16 +2,27 @@
{
public enum ComparisonOperator
{
Equal, GreaterThan, GreaterThanEqual, LessThan, LessThanEqual, NotEqual, DifferentBy
Equal,
GreaterThan,
GreaterThanEqual,
LessThan,
LessThanEqual,
NotEqual,
DifferentBy,
}
public enum Compare
{
Previous, SpecificValue, SpecificAddress, Changes, Difference
Previous,
SpecificValue,
SpecificAddress,
Changes,
Difference,
}
public enum SearchMode
{
Fast, Detailed
Fast,
Detailed,
}
}

View File

@ -57,6 +57,6 @@
/// The traditional float type as in C++ <see langword="float"/>
/// Used only by <see cref="DWordWatch"/> as it is 32 bits length
/// </summary>
Float
Float,
}
}

View File

@ -27,6 +27,6 @@
/// Special case used for a separator in ram tools
/// Use this for <see cref="SeparatorWatch"/>
/// </summary>
Separator = 0
Separator = 0,
}
}

View File

@ -7,6 +7,9 @@ namespace BizHawk.Client.EmuHawk
/// </summary>
public enum ColumnType
{
Boolean, Axis, Text, Image
Boolean,
Axis,
Text,
Image,
}
}

View File

@ -182,6 +182,6 @@ namespace BizHawk.Client.EmuHawk.CustomControls
{
Button1,
Button2,
Button3
Button3,
}
}

View File

@ -20,7 +20,7 @@ namespace BizHawk.Client.EmuHawk
LuaScript,
Cheat,
MovieFile,
LegacyMovieFile
LegacyMovieFile,
}
private readonly struct FileInformation

View File

@ -18,7 +18,7 @@ namespace BizHawk.Client.EmuHawk
LibretroLaunchNoGame,
LibretroLaunchGame,
ClassicLaunchGame,
MameLaunchGame
MameLaunchGame,
}
public partial class OpenAdvancedChooser : Form, IDialogParent

View File

@ -65,7 +65,7 @@ namespace BizHawk.Client.EmuHawk
RC_EXPIRED_TOKEN = -35,
RC_INSUFFICIENT_BUFFER = -36,
RC_INVALID_VARIABLE_NAME = -37,
RC_UNKNOWN_VARIABLE_NAME = -38
RC_UNKNOWN_VARIABLE_NAME = -38,
}
public enum rc_runtime_event_type_t : byte
@ -82,7 +82,7 @@ namespace BizHawk.Client.EmuHawk
RC_RUNTIME_EVENT_ACHIEVEMENT_DISABLED,
RC_RUNTIME_EVENT_LBOARD_DISABLED,
RC_RUNTIME_EVENT_ACHIEVEMENT_UNPRIMED,
RC_RUNTIME_EVENT_ACHIEVEMENT_PROGRESS_UPDATED
RC_RUNTIME_EVENT_ACHIEVEMENT_PROGRESS_UPDATED,
}
public enum rc_api_image_type_t : uint

View File

@ -94,7 +94,7 @@ namespace BizHawk.Client.EmuHawk
TI83 = 79,
Uzebox = 80,
NumConsoleIDs
NumConsoleIDs,
}
protected ConsoleID SystemIdToConsoleId()

View File

@ -46,7 +46,7 @@ namespace BizHawk.Client.EmuHawk
ErrorOnLoad, // error method thrown on load
FalseOnLoad, // RomLoader returned false with no other information
ExceptOnAdv, // exception thrown on frame advance
Success // load fully complete
Success, // load fully complete
}
public EStatus Status { get; set; } // what happened

View File

@ -139,7 +139,9 @@ namespace BizHawk.Client.EmuHawk
public enum BreakpointOperation
{
Add, Edit, Duplicate
Add,
Edit,
Duplicate,
}
}
}

View File

@ -307,7 +307,9 @@ namespace BizHawk.Client.EmuHawk
private enum BreakpointOperation
{
Add, Edit, Duplicate
Add,
Edit,
Duplicate,
}
}
}

View File

@ -43,13 +43,13 @@ namespace BizHawk.Client.EmuHawk
InputChange,
InsertFrames,
DeleteFrames,
ClearFrames
ClearFrames,
}
private enum InputChangeTypes
{
Bool,
Axis
Axis,
}
public class TastudioBranchInfo

View File

@ -7,7 +7,10 @@ namespace BizHawk.Client.EmuHawk
{
internal enum BoxType
{
All, Signed, Unsigned, Hex
All,
Signed,
Unsigned,
Hex,
}
internal class LuaTextBox : TextBox

View File

@ -23,7 +23,13 @@ namespace BizHawk.Client.EmuHawk
public enum WhichNametable
{
NT_2000, NT_2400, NT_2800, NT_2C00, NT_ALL, TOPS, BOTTOMS
NT_2000,
NT_2400,
NT_2800,
NT_2C00,
NT_ALL,
TOPS,
BOTTOMS,
}
public WhichNametable Which = WhichNametable.NT_ALL;

View File

@ -482,7 +482,7 @@ namespace BizHawk.Client.EmuHawk
private enum eDisplayType
{
BG1 = 1, BG2 = 2, BG3 = 3, BG4 = 4, OBJTiles0, OBJTiles1, Tiles2bpp, Tiles4bpp, Tiles8bpp, TilesMode7, TilesMode7Ext, TilesMode7DC, Sprites, OBJ,
BG1Screen = 101, BG2Screen = 102, BG3Screen = 103, BG4Screen = 104
BG1Screen = 101, BG2Screen = 102, BG3Screen = 103, BG4Screen = 104,
}
private static bool IsDisplayTypeBG(eDisplayType type) { return type == eDisplayType.BG1 || type == eDisplayType.BG2 || type == eDisplayType.BG3 || type == eDisplayType.BG4; }

View File

@ -28,7 +28,11 @@ namespace BizHawk.Client.EmuHawk
private enum BranchUndo
{
Load, Update, Text, Remove, None
Load,
Update,
Text,
Remove,
None,
}
public TAStudio Tastudio { get; set; }

View File

@ -43,7 +43,7 @@ namespace BizHawk.Common
XI_GestureSwipeBegin = 30,
XI_GestureSwipeUpdate = 31,
XI_GestureSwipeEnd = 32,
XI_LASTEVENT = XI_GestureSwipeEnd
XI_LASTEVENT = XI_GestureSwipeEnd,
}
// these are normally macros in XI2.h

View File

@ -66,7 +66,7 @@ namespace BizHawk.Common
BadIDChoice = 14,
BadName = 15,
BadLength = 16,
BadImplementation = 17
BadImplementation = 17,
}
[DllImport(XLIB)]
@ -118,7 +118,7 @@ namespace BizHawk.Common
ClientMessage = 33,
MappingNotify = 34,
GenericEvent = 35,
LASTEvent = 36
LASTEvent = 36,
}
[StructLayout(LayoutKind.Sequential)]
@ -191,7 +191,7 @@ namespace BizHawk.Common
FocusChangeMask = 1 << 21,
PropertyChangeMask = 1 << 22,
ColormapChangeMask = 1 << 23,
OwnerGrabButtonMask = 1 << 24
OwnerGrabButtonMask = 1 << 24,
}
public enum GrabMode : int

View File

@ -10,7 +10,7 @@ namespace BizHawk.Common
None = 0x0,
Read = 0x1,
Write = 0x2,
Execute = 0x4
Execute = 0x4,
}
[DllImport("libc")]

View File

@ -13,7 +13,7 @@ namespace BizHawk.Common
public enum OpenFileStyle : uint
{
OF_WRITE = 0x00000001,
OF_CREATE = 0x00001000
OF_CREATE = 0x00001000,
}
[StructLayout(LayoutKind.Sequential, Pack = 1)]

View File

@ -42,14 +42,14 @@ namespace BizHawk.Common
[Flags]
public enum Mask : uint
{
Format = 0x4
Format = 0x4,
}
[Flags]
public enum Format : int
{
SortDown = 0x200,
SortUp = 0x400
SortUp = 0x400,
}
}

View File

@ -17,7 +17,7 @@ namespace BizHawk.Common
MEM_LARGE_PAGES = 0x20000000,
MEM_PHYSICAL = 0x00400000,
MEM_TOP_DOWN = 0x00100000,
MEM_WRITE_WATCH = 0x00200000
MEM_WRITE_WATCH = 0x00200000,
}
[Flags]
@ -33,7 +33,7 @@ namespace BizHawk.Common
WRITECOPY = 0x08,
GUARD_Modifierflag = 0x100,
NOCACHE_Modifierflag = 0x200,
WRITECOMBINE_Modifierflag = 0x400
WRITECOMBINE_Modifierflag = 0x400,
}
[DllImport("kernel32.dll", ExactSpelling = true, SetLastError = true)]

View File

@ -35,7 +35,7 @@ namespace BizHawk.Common
RESERVED6 = 0x1000000,
ACTIVATE_ARM32_SERVER = 0x2000000,
ALLOW_LOWER_TRUST_REGISTRATION = 0x4000000, // missing from official docs lmao, but confirmed by https://github.com/microsoft/windows-rs/blob/3fd93b0a8064e4c9c2fb6f43da798030124ee9c5/crates/libs/sys/src/Windows/Win32/System/Com/mod.rs#L315
PS_DLL = 0x80000000
PS_DLL = 0x80000000,
}
[DllImport("ole32.dll", ExactSpelling = true)]

View File

@ -57,7 +57,7 @@ namespace BizHawk.Common
BrowseForPrinter = 0x2000,
/// <remarks>BIF_BROWSEINCLUDEFILES</remarks>
BrowseForEverything = 0x4000
BrowseForEverything = 0x4000,
}
}

View File

@ -7,6 +7,6 @@ namespace BizHawk.Emulation.Common
RightAndUp = 0,
RightAndDown = 1,
LeftAndUp = 2,
LeftAndDown = 3
LeftAndDown = 3,
}
}

View File

@ -13,7 +13,9 @@ namespace BizHawk.Emulation.Common
{
public enum Endian
{
Big, Little, Unknown
Big,
Little,
Unknown,
}
public string Name { get; protected set; }

View File

@ -44,7 +44,7 @@ namespace BizHawk.Emulation.Common
{
None = 0,
WaterboxCoreConsistencyCheck = 1,
WaterboxMemoryConsistencyCheck = 2
WaterboxMemoryConsistencyCheck = 2,
}
/// <summary>

View File

@ -8,7 +8,7 @@
NTSC,
PAL,
Dendy,
SECAM
SECAM,
}
/// <summary>
@ -18,7 +18,7 @@
{
Into,
Out,
Over
Over,
}
/// <summary>
@ -38,6 +38,6 @@
// MAME
Imperfect,
Unimplemented,
NotWorking
NotWorking,
}
}

View File

@ -114,7 +114,9 @@ namespace BizHawk.Emulation.Common
public enum MemoryCallbackType
{
Read, Write, Execute
Read,
Write,
Execute,
}
[Flags]
@ -130,6 +132,6 @@ namespace BizHawk.Emulation.Common
AccessExecute = 0x04 << 12,
CPUUnknown = 0x00 << 8,
CPUZero = 0x01 << 8,
DomainUnknown = 0x00
DomainUnknown = 0x00,
}
}

View File

@ -2,7 +2,8 @@ namespace BizHawk.Emulation.Common
{
public enum SyncSoundMode
{
Sync, Async
Sync,
Async,
}
/// <summary>

View File

@ -42,7 +42,9 @@ namespace BizHawk.Emulation.DiscSystem.CUE
private enum BurnType
{
Normal, Pregap, Postgap
Normal,
Pregap,
Postgap,
}
private class BlobInfo

View File

@ -56,7 +56,8 @@ namespace BizHawk.Emulation.DiscSystem.CUE
private enum Mode
{
Normal, Quotable
Normal,
Quotable,
}
private string ReadToken(Mode mode)

View File

@ -39,6 +39,6 @@ namespace BizHawk.Emulation.DiscSystem.CUE
Mode2_2336, //CDROM-XA Mode2 Data (could contain form 1 or form 2)
Mode2_2352, //CDROM-XA Mode2 Data (but there's no reason to distinguish this from Mode1_2352 other than to alert us that the entire session should be XA
CDI_2336, //CDI Mode2 Data
CDI_2352 //CDI Mode2 Data
CDI_2352, //CDI Mode2 Data
}
}

View File

@ -77,7 +77,7 @@
/// <summary>
/// Audio track( TOC Q control 0x04 flag clear )
/// </summary>
Audio
Audio,
}
}
}

View File

@ -11,7 +11,9 @@ namespace BizHawk.Emulation.DiscSystem
public enum DiscInterface
{
BizHawk, MednaDisc, LibMirage
BizHawk,
MednaDisc,
LibMirage,
}
public enum SessionFormat
@ -19,7 +21,7 @@ namespace BizHawk.Emulation.DiscSystem
None = -1,
Type00_CDROM_CDDA = 0x00,
Type10_CDI = 0x10,
Type20_CDXA = 0x20
Type20_CDXA = 0x20,
}
/// <summary>

View File

@ -65,7 +65,7 @@ namespace BizHawk.Emulation.DiscSystem
CHDERR_INVALID_STATE,
CHDERR_OPERATION_PENDING,
CHDERR_NO_ASYNC_OPERATION,
CHDERR_UNSUPPORTED_FORMAT
CHDERR_UNSUPPORTED_FORMAT,
}
// extracted chd header (not the same as the one on disk, but rather an interpreted one by chd-rs)
@ -128,7 +128,7 @@ namespace BizHawk.Emulation.DiscSystem
{
CD_SUB_NORMAL = 0, // raw deinterleaved R-W subcode with generated P-Q subcode, 96 bytes per sector
CD_SUB_RAW, // raw interleaved P-W subcode, 96 bytes per sector
CD_SUB_NONE // no subcode data stored
CD_SUB_NONE, // no subcode data stored
}
// hunks should be a multiple of this for cd chds