diff --git a/ExternalProjects/BizHawk.SrcGen.VersionInfo/VersionInfoGenerator.cs b/ExternalProjects/BizHawk.SrcGen.VersionInfo/VersionInfoGenerator.cs index bca016ad2f..ede5815976 100644 --- a/ExternalProjects/BizHawk.SrcGen.VersionInfo/VersionInfoGenerator.cs +++ b/ExternalProjects/BizHawk.SrcGen.VersionInfo/VersionInfoGenerator.cs @@ -17,7 +17,7 @@ public class VersionInfoGenerator : ISourceGenerator { RedirectStandardOutput = true, CreateNoWindow = true, - UseShellExecute = false // this is just required for visual studio (: + UseShellExecute = false, // this is just required for visual studio (: }; try { diff --git a/ExternalToolProjects/AutoGenConfig/AutoGenConfigForm.cs b/ExternalToolProjects/AutoGenConfig/AutoGenConfigForm.cs index e3af66d9f1..d5cdbe68f3 100644 --- a/ExternalToolProjects/AutoGenConfig/AutoGenConfigForm.cs +++ b/ExternalToolProjects/AutoGenConfig/AutoGenConfigForm.cs @@ -47,7 +47,7 @@ namespace BizHawk.Experiment.AutoGenConfig Location = new Point(4, 4), Padding = new Padding(0, 4, 0, 0), Size = new Size(ClientSize.Width - 8, 24), - WrapContents = false + WrapContents = false, }); Controls.Add(GroupUIs[string.Empty] = new FlowLayoutPanel { Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, @@ -55,11 +55,11 @@ namespace BizHawk.Experiment.AutoGenConfig FlowDirection = FlowDirection.TopDown, Location = new Point(4, 32), Size = new Size(ClientSize.Width - 8, ClientSize.Height - 64), - WrapContents = false + WrapContents = false, }); var discardButton = new Button { Size = new Size(128, 24), - Text = "Discard Changes" + Text = "Discard Changes", }.Also(it => it.Click += (clickEventSender, clickEventArgs) => Close()); Controls.Add(new FlowLayoutPanel { Anchor = AnchorStyles.Bottom | AnchorStyles.Right, @@ -68,7 +68,7 @@ namespace BizHawk.Experiment.AutoGenConfig Controls = { new Button { Size = new Size(128, 24), - Text = "Review and Save..." + Text = "Review and Save...", }.Also(it => it.Click += (clickEventSender, clickEventArgs) => { var state = GroupUIs.Values.SelectMany(group => group.Controls.Cast()) @@ -104,7 +104,7 @@ namespace BizHawk.Experiment.AutoGenConfig discardButton, }, Location = new Point(ClientSize.Width - 201, ClientSize.Height - 31), - WrapContents = false + WrapContents = false, }); KeyDown += (keyDownEventSender, keyDownEventArgs) => { @@ -127,11 +127,11 @@ namespace BizHawk.Experiment.AutoGenConfig AutoSize = true, Dock = DockStyle.Fill, FlowDirection = FlowDirection.TopDown, - WrapContents = false + WrapContents = false, }.Also(it => GroupUIs[$"{nesting}/{fi.Name}"] = it), }, Size = new Size(560, 300), - Text = fi.Name + Text = fi.Name, }); } var config = (APIs.Emulation as EmulationApi ?? throw new Exception("required API wasn't fulfilled")).ForbiddenConfigReference; diff --git a/ExternalToolProjects/AutoGenConfig/ConfigEditorUIGenerators.cs b/ExternalToolProjects/AutoGenConfig/ConfigEditorUIGenerators.cs index ae089a67ec..cf2ed26c6b 100644 --- a/ExternalToolProjects/AutoGenConfig/ConfigEditorUIGenerators.cs +++ b/ExternalToolProjects/AutoGenConfig/ConfigEditorUIGenerators.cs @@ -55,7 +55,7 @@ namespace BizHawk.Experiment.AutoGenConfig ForeColor = GetUnchangedComparisonColor(nestedName, in baseline, tag), Name = nestedName, Tag = tag, - Text = GetPropertyNameDesc(pi) + Text = GetPropertyNameDesc(pi), }.Also(it => it.CheckedChanged += ControlEventHandler); } @@ -319,7 +319,7 @@ namespace BizHawk.Experiment.AutoGenConfig Maximum = int.MaxValue, Minimum = int.MinValue, Size = new Size(72, 20), - Value = baseline + Value = baseline, }.Also(it => { if (pi.GetCustomAttributes(typeof(RangeAttribute), false).FirstOrDefault() is RangeAttribute range) @@ -332,7 +332,7 @@ namespace BizHawk.Experiment.AutoGenConfig }, ForeColor = GetUnchangedComparisonColor(nestedName, in baseline, tag), Name = nestedName, - Tag = tag + Tag = tag, }; } @@ -366,7 +366,7 @@ namespace BizHawk.Experiment.AutoGenConfig }, ForeColor = GetUnchangedComparisonColor(nestedName, baseline, tag), Name = nestedName, - Tag = tag + Tag = tag, }; } @@ -389,13 +389,13 @@ namespace BizHawk.Experiment.AutoGenConfig AutoSize = true, Controls = { new Label { AutoSize = true, Text = $"no editor found for type {pi.PropertyType}" } }, Location = new Point(4, 16), - MaximumSize = new Size(int.MaxValue, 20) + MaximumSize = new Size(int.MaxValue, 20), }, }, MaximumSize = new Size(int.MaxValue, 40), Name = $"{nesting}/{pi.Name}", Tag = new ConfigPropEditorUITag(metadata, this), - Text = pi.Name + Text = pi.Name, }; protected override object? GetTValue(GroupBox c) => throw new InvalidOperationException(); diff --git a/ExternalToolProjects/DATParser/CustomMainForm.cs b/ExternalToolProjects/DATParser/CustomMainForm.cs index cadfe1dc35..21f011b374 100644 --- a/ExternalToolProjects/DATParser/CustomMainForm.cs +++ b/ExternalToolProjects/DATParser/CustomMainForm.cs @@ -44,11 +44,11 @@ namespace BizHawk.DATTool Controls = { btnDATConv, CreateArgsLabel("Parse External DAT Files (NoIntro / TOSEC)"), - } + }, }, }, Dock = DockStyle.Fill, - FlowDirection = FlowDirection.TopDown + FlowDirection = FlowDirection.TopDown, }); ResumeLayout(); } diff --git a/ExternalToolProjects/DBMan/CustomMainForm.cs b/ExternalToolProjects/DBMan/CustomMainForm.cs index 22c9f87b74..b02252c5d0 100644 --- a/ExternalToolProjects/DBMan/CustomMainForm.cs +++ b/ExternalToolProjects/DBMan/CustomMainForm.cs @@ -69,7 +69,7 @@ namespace BizHawk.DBManTool btnDiscHash, CreateArgsLabel("DBMan.exe --dischash"), tbDiscHashArgs, - } + }, }, new FlowLayoutPanel { AutoSize = true, @@ -77,7 +77,7 @@ namespace BizHawk.DBManTool btnPSXDB, CreateArgsLabel("DBMan.exe --psxdb"), tbPSXDBArgs, - } + }, }, new FlowLayoutPanel { AutoSize = true, @@ -85,7 +85,7 @@ namespace BizHawk.DBManTool btnDBMan, CreateArgsLabel("DBMan.exe --dbman"), }, - Enabled = !OSTailoredCode.IsUnixHost + Enabled = !OSTailoredCode.IsUnixHost, }, new FlowLayoutPanel { AutoSize = true, @@ -94,11 +94,11 @@ namespace BizHawk.DBManTool CreateArgsLabel("DBMan.exe --disccmp"), tbDiscCMPArgs, }, - Enabled = false + Enabled = false, }, }, Dock = DockStyle.Fill, - FlowDirection = FlowDirection.TopDown + FlowDirection = FlowDirection.TopDown, }); ResumeLayout(); } diff --git a/ExternalToolProjects/DBMan/PsxDBJob.cs b/ExternalToolProjects/DBMan/PsxDBJob.cs index 400e73e8e7..5adc34f7af 100644 --- a/ExternalToolProjects/DBMan/PsxDBJob.cs +++ b/ExternalToolProjects/DBMan/PsxDBJob.cs @@ -115,7 +115,7 @@ namespace BizHawk.DBManTool Records.Add(new RedumpRecord() { name = name, - crc = spec_crc_calc.Current.ToString("X8") + crc = spec_crc_calc.Current.ToString("X8"), }); } } diff --git a/src/BizHawk.Bizware.Graphics.Controls/Controls/GDIPlusControl.cs b/src/BizHawk.Bizware.Graphics.Controls/Controls/GDIPlusControl.cs index 0fa9fa78df..937e79b808 100644 --- a/src/BizHawk.Bizware.Graphics.Controls/Controls/GDIPlusControl.cs +++ b/src/BizHawk.Bizware.Graphics.Controls/Controls/GDIPlusControl.cs @@ -29,7 +29,7 @@ namespace BizHawk.Bizware.Graphics.Controls return new(graphics, ClientRectangle with { Width = Math.Max(ClientRectangle.Width, 1), - Height = Math.Max(ClientRectangle.Height, 1) + Height = Math.Max(ClientRectangle.Height, 1), }); } diff --git a/src/BizHawk.Bizware.Graphics/BitmapBuffer.cs b/src/BizHawk.Bizware.Graphics/BitmapBuffer.cs index 104822086e..f5dc16c4f1 100644 --- a/src/BizHawk.Bizware.Graphics/BitmapBuffer.cs +++ b/src/BizHawk.Bizware.Graphics/BitmapBuffer.cs @@ -61,7 +61,7 @@ namespace BizHawk.Bizware.Graphics Height = Height, Width = Width, Stride = Width * 4, - Scan0 = CurrLockHandle.AddrOfPinnedObject() + Scan0 = CurrLockHandle.AddrOfPinnedObject(), }; return CurrLock; diff --git a/src/BizHawk.Bizware.Graphics/GDIPlus/GDIPlusTexture2D.cs b/src/BizHawk.Bizware.Graphics/GDIPlus/GDIPlusTexture2D.cs index 97654fea32..e2f857860a 100644 --- a/src/BizHawk.Bizware.Graphics/GDIPlus/GDIPlusTexture2D.cs +++ b/src/BizHawk.Bizware.Graphics/GDIPlus/GDIPlusTexture2D.cs @@ -29,7 +29,7 @@ namespace BizHawk.Bizware.Graphics { var blo = new BitmapLoadOptions { - AllowWrap = false // must be an independent resource + AllowWrap = false, // must be an independent resource }; return new(SDBitmap, blo); diff --git a/src/BizHawk.Client.Common/DisplayManager/DisplayManagerBase.cs b/src/BizHawk.Client.Common/DisplayManager/DisplayManagerBase.cs index 45e4d372cc..c2d63479b0 100644 --- a/src/BizHawk.Client.Common/DisplayManager/DisplayManagerBase.cs +++ b/src/BizHawk.Client.Common/DisplayManager/DisplayManagerBase.cs @@ -476,7 +476,7 @@ namespace BizHawk.Client.Common Simulate = displayNothing, ChainOutsize = GetGraphicsControlSize(), IncludeOSD = true, - IncludeUserFilters = true + IncludeUserFilters = true, }; UpdateSourceInternal(job); diff --git a/src/BizHawk.Client.Common/DisplayManager/Filters/BaseFilter.cs b/src/BizHawk.Client.Common/DisplayManager/Filters/BaseFilter.cs index 32c40e2d5f..47b803df2b 100644 --- a/src/BizHawk.Client.Common/DisplayManager/Filters/BaseFilter.cs +++ b/src/BizHawk.Client.Common/DisplayManager/Filters/BaseFilter.cs @@ -139,7 +139,7 @@ namespace BizHawk.Client.Common.Filters { SurfaceDirection = direction, Channel = channel, - SurfaceDisposition = disposition + SurfaceDisposition = disposition, }; _ioSurfaceInfos.Add(iosi); diff --git a/src/BizHawk.Client.Common/DisplayManager/OSDManager.cs b/src/BizHawk.Client.Common/DisplayManager/OSDManager.cs index 580edf6acf..6924c6c7e2 100644 --- a/src/BizHawk.Client.Common/DisplayManager/OSDManager.cs +++ b/src/BizHawk.Client.Common/DisplayManager/OSDManager.cs @@ -103,7 +103,7 @@ namespace BizHawk.Client.Common Message = message, Position = pos, BackGround = backGround, - ForeColor = foreColor + ForeColor = foreColor, }); } @@ -114,7 +114,7 @@ namespace BizHawk.Client.Common Message = message, Position = pos, BackGround = backGround, - ForeColor = foreColor + ForeColor = foreColor, }); } diff --git a/src/BizHawk.Client.Common/QuickBmpFile.cs b/src/BizHawk.Client.Common/QuickBmpFile.cs index 93c7e37b7d..d4a1e22751 100644 --- a/src/BizHawk.Client.Common/QuickBmpFile.cs +++ b/src/BizHawk.Client.Common/QuickBmpFile.cs @@ -197,13 +197,13 @@ namespace BizHawk.Client.Common { Data = srcp, Width = src.BufferWidth, - Height = src.BufferHeight + Height = src.BufferHeight, }, new BMP { Data = dstp, Width = dst.BufferWidth, - Height = dst.BufferHeight + Height = dst.BufferHeight, }); } } @@ -271,7 +271,7 @@ namespace BizHawk.Client.Common { Data = (int*)srcp, Width = inW, - Height = inH + Height = inH, }, new BMP { @@ -317,7 +317,7 @@ namespace BizHawk.Client.Common { Data = srcp, Width = v.BufferWidth, - Height = v.BufferHeight + Height = v.BufferHeight, }, new BMP { diff --git a/src/BizHawk.Client.Common/RomGame.cs b/src/BizHawk.Client.Common/RomGame.cs index 090e7071f8..bb5675db9b 100644 --- a/src/BizHawk.Client.Common/RomGame.cs +++ b/src/BizHawk.Client.Common/RomGame.cs @@ -60,7 +60,7 @@ namespace BizHawk.Client.Common System = VSystemID.Raw.N3DS, Hash = "N/A", Status = RomStatus.NotInDatabase, - NotInDatabase = true + NotInDatabase = true, }; #pragma warning disable CA1862 // testing whether it's all-caps diff --git a/src/BizHawk.Client.Common/RomLoader.cs b/src/BizHawk.Client.Common/RomLoader.cs index 21572327df..0ca0b1c5b7 100644 --- a/src/BizHawk.Client.Common/RomLoader.cs +++ b/src/BizHawk.Client.Common/RomLoader.cs @@ -342,7 +342,7 @@ namespace BizHawk.Client.Common { DiscData = disc, DiscType = new DiscIdentifier(disc).DetectDiscType(), - DiscName = Path.GetFileNameWithoutExtension(path) + DiscName = Path.GetFileNameWithoutExtension(path), }, }, }; @@ -368,7 +368,7 @@ namespace BizHawk.Client.Common { DiscData = a.d, DiscType = new DiscIdentifier(a.d).DetectDiscType(), - DiscName = Path.GetFileNameWithoutExtension(a.p) + DiscName = Path.GetFileNameWithoutExtension(a.p), }) .ToList(); if (discs.Count == 0) @@ -379,7 +379,7 @@ namespace BizHawk.Client.Common { Comm = nextComm, Game = game, - Discs = discs + Discs = discs, }; nextEmulator = MakeCoreFromCoreInventory(cip, forcedCoreName); } @@ -560,7 +560,7 @@ namespace BizHawk.Client.Common FileData = rom.FileData, Extension = rom.Extension, RomPath = file.FullPathWithoutMember, - Game = game + Game = game, }, }, }; @@ -689,7 +689,7 @@ namespace BizHawk.Client.Common FileData = kvp.Value, // TODO: Hope no one needed anything special here Extension = Path.GetExtension(kvp.Key), RomPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(path.SubstringBefore('|'))!, kvp.Key!)), - Game = Database.GetGameInfo(kvp.Value, Path.GetFileName(kvp.Key)) + Game = Database.GetGameInfo(kvp.Value, Path.GetFileName(kvp.Key)), }) .ToList(), Discs = xmlGame.AssetFullPaths @@ -700,7 +700,7 @@ namespace BizHawk.Client.Common { DiscData = a.d, DiscType = new DiscIdentifier(a.d).DetectDiscType(), - DiscName = Path.GetFileNameWithoutExtension(a.p) + DiscName = Path.GetFileNameWithoutExtension(a.p), }) .ToList(), }; diff --git a/src/BizHawk.Client.Common/Sound/Utilities/SyncToAsyncProvider.cs b/src/BizHawk.Client.Common/Sound/Utilities/SyncToAsyncProvider.cs index 7a5365df82..3210f1b4a2 100644 --- a/src/BizHawk.Client.Common/Sound/Utilities/SyncToAsyncProvider.cs +++ b/src/BizHawk.Client.Common/Sound/Utilities/SyncToAsyncProvider.cs @@ -10,7 +10,7 @@ namespace BizHawk.Client.Common { _outputProvider = new SoundOutputProvider(getCoreVsyncRateCallback, standaloneMode: true) { - BaseSoundProvider = baseProvider + BaseSoundProvider = baseProvider, }; } diff --git a/src/BizHawk.Client.Common/XmlGame.cs b/src/BizHawk.Client.Common/XmlGame.cs index 2d12f9d89c..bc69b49064 100644 --- a/src/BizHawk.Client.Common/XmlGame.cs +++ b/src/BizHawk.Client.Common/XmlGame.cs @@ -37,9 +37,9 @@ namespace BizHawk.Client.Common { System = y.Attributes!["System"].Value, Name = y.Attributes["Name"].Value, - Status = RomStatus.Unknown + Status = RomStatus.Unknown, }, - Xml = x + Xml = x, }; var fullPath = ""; diff --git a/src/BizHawk.Client.Common/cheats/GbaGameSharkDecoder.cs b/src/BizHawk.Client.Common/cheats/GbaGameSharkDecoder.cs index 6ca3a8b5f5..da83762119 100644 --- a/src/BizHawk.Client.Common/cheats/GbaGameSharkDecoder.cs +++ b/src/BizHawk.Client.Common/cheats/GbaGameSharkDecoder.cs @@ -71,7 +71,7 @@ namespace BizHawk.Client.Common.cheats '3' => WatchSize.DWord, '6' => WatchSize.Word, _ => WatchSize.Byte, - } + }, }; result.Address = int.Parse(GetLast(code, (int)result.Size), NumberStyles.HexNumber); diff --git a/src/BizHawk.Client.Common/cheats/N64GameSharkDecoder.cs b/src/BizHawk.Client.Common/cheats/N64GameSharkDecoder.cs index de6a7c4da4..411ff6d971 100644 --- a/src/BizHawk.Client.Common/cheats/N64GameSharkDecoder.cs +++ b/src/BizHawk.Client.Common/cheats/N64GameSharkDecoder.cs @@ -61,7 +61,7 @@ namespace BizHawk.Client.Common.cheats _ => WatchSize.Byte, }, Address = int.Parse(s.Remove(6, 5), NumberStyles.HexNumber), - Value = int.Parse(s.Remove(0, 7), NumberStyles.HexNumber) + Value = int.Parse(s.Remove(0, 7), NumberStyles.HexNumber), }; } } diff --git a/src/BizHawk.Client.Common/cheats/SnesActionReplayDecoder.cs b/src/BizHawk.Client.Common/cheats/SnesActionReplayDecoder.cs index 4f1cabe100..9dc33b0693 100644 --- a/src/BizHawk.Client.Common/cheats/SnesActionReplayDecoder.cs +++ b/src/BizHawk.Client.Common/cheats/SnesActionReplayDecoder.cs @@ -24,7 +24,7 @@ namespace BizHawk.Client.Common.cheats { Size = WatchSize.Byte, Address = int.Parse(code.Remove(6, 2), NumberStyles.HexNumber), - Value = int.Parse(code.Remove(0, 6), NumberStyles.HexNumber) + Value = int.Parse(code.Remove(0, 6), NumberStyles.HexNumber), }; } } diff --git a/src/BizHawk.Client.Common/config/ConfigService.cs b/src/BizHawk.Client.Common/config/ConfigService.cs index fda1ba59ed..2b341b2b3e 100644 --- a/src/BizHawk.Client.Common/config/ConfigService.cs +++ b/src/BizHawk.Client.Common/config/ConfigService.cs @@ -28,7 +28,7 @@ namespace BizHawk.Client.Common ContractResolver = new DefaultContractResolver { - DefaultMembersSearchFlags = BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic + DefaultMembersSearchFlags = BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic, }, }; } diff --git a/src/BizHawk.Client.Common/fwmanager/FirmwareManager.cs b/src/BizHawk.Client.Common/fwmanager/FirmwareManager.cs index 1f74056fea..dd6b39efd8 100644 --- a/src/BizHawk.Client.Common/fwmanager/FirmwareManager.cs +++ b/src/BizHawk.Client.Common/fwmanager/FirmwareManager.cs @@ -61,7 +61,7 @@ namespace BizHawk.Client.Common FilePath = patchedFilePath, KnownFirmwareFile = ff, Hash = patchOption.Value.TargetHash, - Size = patchedFileLength + Size = patchedFileLength, }; } @@ -170,7 +170,7 @@ namespace BizHawk.Client.Common FilePath = reader.Dict[fo.Hash].FileInfo.FullName, KnownFirmwareFile = FirmwareDatabase.FirmwareFilesByHash[fo.Hash], Hash = fo.Hash, - Size = fo.Size + Size = fo.Size, }; } diff --git a/src/BizHawk.Client.Common/inputAdapters/IInputAdapter.cs b/src/BizHawk.Client.Common/inputAdapters/IInputAdapter.cs index 9d7aff76e4..f1355b3e4d 100644 --- a/src/BizHawk.Client.Common/inputAdapters/IInputAdapter.cs +++ b/src/BizHawk.Client.Common/inputAdapters/IInputAdapter.cs @@ -21,7 +21,7 @@ namespace BizHawk.Client.Common return new AndAdapter { Source = source, - SourceAnd = target + SourceAnd = target, }; } @@ -33,7 +33,7 @@ namespace BizHawk.Client.Common return new XorAdapter { Source = source, - SourceXor = target + SourceXor = target, }; } @@ -46,7 +46,7 @@ namespace BizHawk.Client.Common return new ORAdapter { Source = source, - SourceOr = target + SourceOr = target, }; } } diff --git a/src/BizHawk.Client.Common/lua/LuaDocumentation.cs b/src/BizHawk.Client.Common/lua/LuaDocumentation.cs index ddcd19206e..bbdb43b33d 100644 --- a/src/BizHawk.Client.Common/lua/LuaDocumentation.cs +++ b/src/BizHawk.Client.Common/lua/LuaDocumentation.cs @@ -141,7 +141,7 @@ namespace BizHawk.Client.Common { var completion = new SublimeCompletions.Completion { - Trigger = $"{f.Library}.{f.Name}" + Trigger = $"{f.Library}.{f.Name}", }; var sb = new StringBuilder(); diff --git a/src/BizHawk.Client.Common/movie/SubtitleList.cs b/src/BizHawk.Client.Common/movie/SubtitleList.cs index d2a19bd63e..9baf291c04 100644 --- a/src/BizHawk.Client.Common/movie/SubtitleList.cs +++ b/src/BizHawk.Client.Common/movie/SubtitleList.cs @@ -50,7 +50,7 @@ namespace BizHawk.Client.Common Y = int.Parse(subParts[3]), Duration = int.Parse(subParts[4]), Color = uint.Parse(subParts[5], NumberStyles.HexNumber), - Message = message.Trim() + Message = message.Trim(), }); return true; diff --git a/src/BizHawk.Client.Common/movie/import/DsmImport.cs b/src/BizHawk.Client.Common/movie/import/DsmImport.cs index 9cf4b86730..b4f3b8ab58 100644 --- a/src/BizHawk.Client.Common/movie/import/DsmImport.cs +++ b/src/BizHawk.Client.Common/movie/import/DsmImport.cs @@ -34,7 +34,7 @@ namespace BizHawk.Client.Common "Touch", "Microphone", "Power", - } + }, }.AddXYPair("Touch {0}", AxisPairOrientation.RightAndUp, 0.RangeTo(255), 128, 0.RangeTo(191), 96) //TODO verify direction against hardware .AddAxis("Mic Volume", 0.RangeTo(100), 100) .AddAxis("GBA Light Sensor", 0.RangeTo(10), 0) diff --git a/src/BizHawk.Client.Common/movie/import/FcmImport.cs b/src/BizHawk.Client.Common/movie/import/FcmImport.cs index 7c4dd98111..a2bc0a4422 100644 --- a/src/BizHawk.Client.Common/movie/import/FcmImport.cs +++ b/src/BizHawk.Client.Common/movie/import/FcmImport.cs @@ -34,7 +34,7 @@ namespace BizHawk.Client.Common.movie.import var controllerSettings = new NESControlSettings { NesLeftPort = nameof(ControllerNES), - NesRightPort = nameof(ControllerNES) + NesRightPort = nameof(ControllerNES), }; _deck = controllerSettings.Instantiate((x, y) => true).AddSystemToControllerDef(); _deck.ControllerDef.BuildMnemonicsCache(Result.Movie.SystemID); diff --git a/src/BizHawk.Client.Common/movie/import/Fm2Import.cs b/src/BizHawk.Client.Common/movie/import/Fm2Import.cs index 82220bba6e..d327bbd690 100644 --- a/src/BizHawk.Client.Common/movie/import/Fm2Import.cs +++ b/src/BizHawk.Client.Common/movie/import/Fm2Import.cs @@ -23,7 +23,7 @@ namespace BizHawk.Client.Common var controllerSettings = new NESControlSettings { NesLeftPort = nameof(UnpluggedNES), - NesRightPort = nameof(UnpluggedNES) + NesRightPort = nameof(UnpluggedNES), }; bool isFourScore = false; diff --git a/src/BizHawk.Client.Common/movie/import/FmvImport.cs b/src/BizHawk.Client.Common/movie/import/FmvImport.cs index ac0a6a5555..2d051c2e1b 100644 --- a/src/BizHawk.Client.Common/movie/import/FmvImport.cs +++ b/src/BizHawk.Client.Common/movie/import/FmvImport.cs @@ -91,7 +91,7 @@ namespace BizHawk.Client.Common.movie.import var controllerSettings = new NESControlSettings { NesLeftPort = controller1 ? nameof(ControllerNES) : nameof(UnpluggedNES), - NesRightPort = controller2 ? nameof(ControllerNES) : nameof(UnpluggedNES) + NesRightPort = controller2 ? nameof(ControllerNES) : nameof(UnpluggedNES), }; _deck = controllerSettings.Instantiate((x, y) => true).AddSystemToControllerDef(); _deck.ControllerDef.BuildMnemonicsCache(Result.Movie.SystemID); diff --git a/src/BizHawk.Client.Common/movie/import/GmvImport.cs b/src/BizHawk.Client.Common/movie/import/GmvImport.cs index 50eaad519c..c6b07582c8 100644 --- a/src/BizHawk.Client.Common/movie/import/GmvImport.cs +++ b/src/BizHawk.Client.Common/movie/import/GmvImport.cs @@ -80,7 +80,7 @@ namespace BizHawk.Client.Common.movie.import { UseSixButton = useSixButtons, ControlTypeLeft = GPGX.ControlType.Normal, - ControlTypeRight = GPGX.ControlType.Normal + ControlTypeRight = GPGX.ControlType.Normal, }; input.dev[2] = input.dev[3] = input.dev[4] = input.dev[5] = input.dev[6] = input.dev[7] = LibGPGX.INPUT_DEVICE.DEVICE_NONE; diff --git a/src/BizHawk.Client.Common/movie/import/Mc2Import.cs b/src/BizHawk.Client.Common/movie/import/Mc2Import.cs index becaf74815..fd853ef805 100644 --- a/src/BizHawk.Client.Common/movie/import/Mc2Import.cs +++ b/src/BizHawk.Client.Common/movie/import/Mc2Import.cs @@ -19,7 +19,7 @@ namespace BizHawk.Client.Common.movie.import Port2 = PceControllerType.Unplugged, Port3 = PceControllerType.Unplugged, Port4 = PceControllerType.Unplugged, - Port5 = PceControllerType.Unplugged + Port5 = PceControllerType.Unplugged, }; _deck = new PceControllerDeck( diff --git a/src/BizHawk.Client.Common/movie/import/PjmImport.cs b/src/BizHawk.Client.Common/movie/import/PjmImport.cs index 3e6ee4e650..820d31c3aa 100644 --- a/src/BizHawk.Client.Common/movie/import/PjmImport.cs +++ b/src/BizHawk.Client.Common/movie/import/PjmImport.cs @@ -139,8 +139,8 @@ namespace BizHawk.Client.Common OctoshockDll.ePeripheralType.None, OctoshockDll.ePeripheralType.None, OctoshockDll.ePeripheralType.None, - } - } + }, + }, }; movie.SyncSettingsJson = ConfigService.SaveWithType(syncSettings); diff --git a/src/BizHawk.Client.Common/movie/import/VbmImport.cs b/src/BizHawk.Client.Common/movie/import/VbmImport.cs index f58253c26b..8b5a22f75f 100644 --- a/src/BizHawk.Client.Common/movie/import/VbmImport.cs +++ b/src/BizHawk.Client.Common/movie/import/VbmImport.cs @@ -306,7 +306,7 @@ namespace BizHawk.Client.Common.movie.import private static SimpleController GbController() => new(new ControllerDefinition("Gameboy Controller") { - BoolButtons = { "Up", "Down", "Left", "Right", "Start", "Select", "B", "A", "Power" } + BoolButtons = { "Up", "Down", "Left", "Right", "Start", "Select", "B", "A", "Power" }, }.MakeImmutable()); private static SimpleController GbaController() diff --git a/src/BizHawk.Client.Common/movie/import/YmvImport.cs b/src/BizHawk.Client.Common/movie/import/YmvImport.cs index a38b06d950..3a30d6ace4 100644 --- a/src/BizHawk.Client.Common/movie/import/YmvImport.cs +++ b/src/BizHawk.Client.Common/movie/import/YmvImport.cs @@ -29,7 +29,7 @@ namespace BizHawk.Client.Common.movie.import [9] = "none", [10] = "none", [11] = "none", - } + }, }; using var sr = SourceFile.OpenText(); @@ -110,7 +110,7 @@ namespace BizHawk.Client.Common.movie.import "P1 Start", "P1 A", "P1 B", "P1 C", "P1 X", "P1 Y", "P1 Z", "P1 L", "P1 R", - } + }, }.MakeImmutable()); controllers.Definition.BuildMnemonicsCache(Result.Movie.SystemID); diff --git a/src/BizHawk.Client.Common/movie/import/bkm/BkmMnemonicConstants.cs b/src/BizHawk.Client.Common/movie/import/bkm/BkmMnemonicConstants.cs index d27901e157..6d52855c27 100644 --- a/src/BizHawk.Client.Common/movie/import/bkm/BkmMnemonicConstants.cs +++ b/src/BizHawk.Client.Common/movie/import/bkm/BkmMnemonicConstants.cs @@ -14,13 +14,13 @@ namespace BizHawk.Client.Common { BoolButtons = new[] { "Up", "Down", "Left", "Right", "Select", "Start", "B", "A" }.Select(b => $"P1 {b}") .Append("Power") - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.GBA] = new BkmControllerDefinition("GBA Controller") { BoolButtons = new[] { "Up", "Down", "Left", "Right", "Select", "Start", "B", "A", "L", "R" }.Select(b => $"P1 {b}") .Append("Power") - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.GEN] = new BkmControllerDefinition("GPGX Genesis Controller") { @@ -28,7 +28,7 @@ namespace BizHawk.Client.Common .SelectMany(i => new[] { "Up", "Down", "Left", "Right", "A", "B", "C", "Start", "X", "Y", "Z", "Mode" } .Select(b => $"P{i} {b}")) .Concat([ "Reset", "Power" ]) - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.NES] = new BkmControllerDefinition("NES Controller") { @@ -36,7 +36,7 @@ namespace BizHawk.Client.Common .SelectMany(i => new[] { "Up", "Down", "Left", "Right", "Select", "Start", "B", "A" } .Select(b => $"P{i} {b}")) .Concat([ "Reset", "Power", "FDS Eject", "FDS Insert 0", "FDS Insert 1", "FDS Insert 2", "FDS Insert 3", "VS Coin 1", "VS Coin 2" ]) - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.SNES] = new BkmControllerDefinition("SNES Controller") { @@ -44,14 +44,14 @@ namespace BizHawk.Client.Common .SelectMany(i => new[] { "Up", "Down", "Left", "Right", "Select", "Start", "B", "A", "X", "Y", "L", "R" } .Select(b => $"P{i} {b}")) .Concat([ "Reset", "Power" ]) - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.PCE] = new BkmControllerDefinition("PC Engine Controller") { BoolButtons = Enumerable.Range(1, 5) .SelectMany(i => new[] { "Up", "Down", "Left", "Right", "Select", "Run", "B2", "B1" } .Select(b => $"P{i} {b}")) - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.SMS] = new BkmControllerDefinition("SMS Controller") { @@ -59,7 +59,7 @@ namespace BizHawk.Client.Common .SelectMany(i => new[] { "Up", "Down", "Left", "Right", "B1", "B2" } .Select(b => $"P{i} {b}")) .Concat([ "Pause", "Reset" ]) - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.TI83] = new BkmControllerDefinition("TI83 Controller") { @@ -70,7 +70,7 @@ namespace BizHawk.Client.Common "PRGM", "STAT", "MATRIX", "X", "STO", "LN", "LOG", "SQUARED", "NEG1", "MATH", "ALPHA", "GRAPH", "TRACE", "ZOOM", "WINDOW", "Y", "2ND", "MODE", }.Select(b => $"P1 {b}") - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.A26] = new BkmControllerDefinition("Atari 2600 Basic Controller") { @@ -78,7 +78,7 @@ namespace BizHawk.Client.Common .SelectMany(i => new[] { "Up", "Down", "Left", "Right", "Button" } .Select(b => $"P{i} {b}")) .Concat([ "Reset", "Select" ]) - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.A78] = new BkmControllerDefinition("Atari 7800 ProLine Joystick Controller") { @@ -86,7 +86,7 @@ namespace BizHawk.Client.Common .SelectMany(i => new[] { "Up", "Down", "Left", "Right", "Trigger", "Trigger 2" } .Select(b => $"P{i} {b}")) .Concat([ "Reset", "Power", "Select", "Pause" ]) - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.C64] = new BkmControllerDefinition("Commodore 64 Controller") { @@ -102,7 +102,7 @@ namespace BizHawk.Client.Common "Key Z", "Key X", "Key C", "Key V", "Key B", "Key N", "Key M", "Key Comma", "Key Period", "Key Slash", "Key Right Shift", "Key Cursor Up/Down", "Key Cursor Left/Right", "Key Space" ]) - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.Coleco] = new BkmControllerDefinition("ColecoVision Basic Controller") { @@ -111,7 +111,7 @@ namespace BizHawk.Client.Common "Key1", "Key2", "Key3", "Key4", "Key5", "Key6", "Key7", "Key8", "Key9", "Star", "Key0", "Pound", }.Select(b => $"P{i} {b}")) - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.N64] = new BkmControllerDefinition("Nintento 64 Controller") { @@ -122,7 +122,7 @@ namespace BizHawk.Client.Common "C Up", "C Down", "C Left", "C Right", }.Select(b => $"P{i} {b}")) .Concat([ "Reset", "Power" ]) - .ToArray() + .ToArray(), }.AddXYPair("P1 {0} Axis", AxisPairOrientation.RightAndUp, (-128).RangeTo(127), 0) .AddXYPair("P2 {0} Axis", AxisPairOrientation.RightAndUp, (-128).RangeTo(127), 0) .AddXYPair("P3 {0} Axis", AxisPairOrientation.RightAndUp, (-128).RangeTo(127), 0) @@ -134,14 +134,14 @@ namespace BizHawk.Client.Common .SelectMany(i => new[] { "Up", "Down", "Left", "Right", "Start", "X", "Y", "Z", "A", "B", "C", "L", "R" } .Select(b => $"P{i} {b}")) .Concat([ "Reset", "Power" ]) - .ToArray() + .ToArray(), }.MakeImmutable(), ["DGB"] = new BkmControllerDefinition("Dual Gameboy Controller") { BoolButtons = Enumerable.Range(1, 2) .SelectMany(i => new[] { "Power", "Up", "Down", "Left", "Right", "Select", "Start", "B", "A" } .Select(b => $"P{i} {b}")) - .ToArray() + .ToArray(), }.MakeImmutable(), [VSystemID.Raw.WSWAN] = new BkmControllerDefinition("WonderSwan Controller") { @@ -149,7 +149,7 @@ namespace BizHawk.Client.Common .SelectMany(i => new[] { "X1", "X3", "X4", "X2", "Y1", "Y3", "Y4", "Y2", "Start", "B", "A" } .Select(b => $"P{i} {b}")) .Concat([ "Power", "Rotate" ]) - .ToArray() + .ToArray(), }.MakeImmutable(), }; } diff --git a/src/BizHawk.Client.Common/movie/tasproj/TasMovie.cs b/src/BizHawk.Client.Common/movie/tasproj/TasMovie.cs index f938885927..5a1c8dc2eb 100644 --- a/src/BizHawk.Client.Common/movie/tasproj/TasMovie.cs +++ b/src/BizHawk.Client.Common/movie/tasproj/TasMovie.cs @@ -103,7 +103,7 @@ namespace BizHawk.Client.Common HasState = TasStateManager.HasState(index), LogEntry = GetInputLogEntry(index), Lagged = lagged, - WasLagged = LagLog.History(lagIndex) + WasLagged = LagLog.History(lagIndex), }; } } diff --git a/src/BizHawk.Client.Common/movie/tasproj/ZwinderStateManagerSettings.cs b/src/BizHawk.Client.Common/movie/tasproj/ZwinderStateManagerSettings.cs index 945f6b5039..9bb67ed348 100644 --- a/src/BizHawk.Client.Common/movie/tasproj/ZwinderStateManagerSettings.cs +++ b/src/BizHawk.Client.Common/movie/tasproj/ZwinderStateManagerSettings.cs @@ -119,7 +119,7 @@ namespace BizHawk.Client.Common UseFixedRewindInterval = false, TargetFrameLength = CurrentTargetFrameLength, AllowOutOfOrderStates = false, - BackingStore = CurrentStoreType + BackingStore = CurrentStoreType, }; } public RewindConfig Recent() @@ -131,7 +131,7 @@ namespace BizHawk.Client.Common UseFixedRewindInterval = false, TargetFrameLength = RecentTargetFrameLength, AllowOutOfOrderStates = false, - BackingStore = RecentStoreType + BackingStore = RecentStoreType, }; } public RewindConfig GapFiller() @@ -143,7 +143,7 @@ namespace BizHawk.Client.Common UseFixedRewindInterval = false, TargetFrameLength = GapsTargetFrameLength, AllowOutOfOrderStates = false, - BackingStore = GapsStoreType + BackingStore = GapsStoreType, }; } } diff --git a/src/BizHawk.Client.Common/rewind/ZwinderBuffer.cs b/src/BizHawk.Client.Common/rewind/ZwinderBuffer.cs index 4365dfa2a5..5843b8e3c2 100644 --- a/src/BizHawk.Client.Common/rewind/ZwinderBuffer.cs +++ b/src/BizHawk.Client.Common/rewind/ZwinderBuffer.cs @@ -380,7 +380,7 @@ namespace BizHawk.Client.Common TargetFrameLength = targetFrameLength, TargetRewindInterval = 5, AllowOutOfOrderStates = false, - UseCompression = useCompression + UseCompression = useCompression, }); if (ret.Size != size || ret._sizeMask != sizeMask) { diff --git a/src/BizHawk.Client.Common/tools/Watch/SeparatorWatch.cs b/src/BizHawk.Client.Common/tools/Watch/SeparatorWatch.cs index 12a9a5c73d..50497f3e7d 100644 --- a/src/BizHawk.Client.Common/tools/Watch/SeparatorWatch.cs +++ b/src/BizHawk.Client.Common/tools/Watch/SeparatorWatch.cs @@ -25,7 +25,7 @@ namespace BizHawk.Client.Common { return new SeparatorWatch { - Notes = description + Notes = description, }; } diff --git a/src/BizHawk.Client.EmuHawk/AVOut/AviWriter.cs b/src/BizHawk.Client.EmuHawk/AVOut/AviWriter.cs index 0fcb2785f1..c0c32d3a54 100644 --- a/src/BizHawk.Client.EmuHawk/AVOut/AviWriter.cs +++ b/src/BizHawk.Client.EmuHawk/AVOut/AviWriter.cs @@ -264,7 +264,7 @@ namespace BizHawk.Client.EmuHawk fps_scale = 1, a_bits = 16, a_samplerate = 44100, - a_channels = 2 + a_channels = 2, }; var tempSegment = new AviWriterSegment(); @@ -434,7 +434,7 @@ namespace BizHawk.Client.EmuHawk _comprOptions = opts, codec = Decode_mmioFOURCC(opts.fccHandler), Format = new byte[opts.cbFormat], - Parms = new byte[opts.cbParms] + Parms = new byte[opts.cbParms], }; if (opts.lpFormat != IntPtr.Zero) @@ -551,7 +551,7 @@ namespace BizHawk.Client.EmuHawk _comprOptions = comprOptions, Format = format, Parms = parms, - codec = Decode_mmioFOURCC(comprOptions.fccHandler) + codec = Decode_mmioFOURCC(comprOptions.fccHandler), }; } diff --git a/src/BizHawk.Client.EmuHawk/AVOut/GifWriter.cs b/src/BizHawk.Client.EmuHawk/AVOut/GifWriter.cs index d4f6710a67..e4a0d281f7 100644 --- a/src/BizHawk.Client.EmuHawk/AVOut/GifWriter.cs +++ b/src/BizHawk.Client.EmuHawk/AVOut/GifWriter.cs @@ -66,7 +66,7 @@ namespace BizHawk.Client.EmuHawk return new GifToken(0, 0) { Frameskip = config.GifWriterFrameskip, - FrameDelay = config.GifWriterDelay + FrameDelay = config.GifWriterDelay, }; } diff --git a/src/BizHawk.Client.EmuHawk/AVOut/GifWriterForm.cs b/src/BizHawk.Client.EmuHawk/AVOut/GifWriterForm.cs index 8af886e80d..2bd3f2e16f 100644 --- a/src/BizHawk.Client.EmuHawk/AVOut/GifWriterForm.cs +++ b/src/BizHawk.Client.EmuHawk/AVOut/GifWriterForm.cs @@ -15,7 +15,7 @@ namespace BizHawk.Client.EmuHawk using var dlg = new GifWriterForm { numericUpDown1 = { Value = config.GifWriterFrameskip }, - numericUpDown2 = { Value = config.GifWriterDelay } + numericUpDown2 = { Value = config.GifWriterDelay }, }; dlg.NumericUpDown2_ValueChanged(null, null); diff --git a/src/BizHawk.Client.EmuHawk/AVOut/JMDForm.cs b/src/BizHawk.Client.EmuHawk/AVOut/JMDForm.cs index 0904bc6b9f..ba1c32c578 100644 --- a/src/BizHawk.Client.EmuHawk/AVOut/JMDForm.cs +++ b/src/BizHawk.Client.EmuHawk/AVOut/JMDForm.cs @@ -40,7 +40,7 @@ namespace BizHawk.Client.EmuHawk var j = new JmdForm { threadsBar = { Minimum = tMin, Maximum = tMax }, - compressionBar = { Minimum = cMin, Maximum = cMax } + compressionBar = { Minimum = cMin, Maximum = cMax }, }; j.threadsBar.Value = threads; diff --git a/src/BizHawk.Client.EmuHawk/AVOut/JMDWriter.cs b/src/BizHawk.Client.EmuHawk/AVOut/JMDWriter.cs index c9256ffedb..092a72729f 100644 --- a/src/BizHawk.Client.EmuHawk/AVOut/JMDWriter.cs +++ b/src/BizHawk.Client.EmuHawk/AVOut/JMDWriter.cs @@ -380,7 +380,7 @@ namespace BizHawk.Client.EmuHawk Stream = 0, Subtype = 1,// zlib compressed, other possibility is 0 = uncompressed Data = source, - Timestamp = TimestampCalc(_fpsNum, _fpsDen, _totalFrames) + Timestamp = TimestampCalc(_fpsNum, _fpsDen, _totalFrames), }; _totalFrames++; @@ -420,7 +420,7 @@ namespace BizHawk.Client.EmuHawk { Stream = 1, Subtype = 1, // raw PCM audio - Data = new byte[4] + Data = new byte[4], }; j.Data[0] = (byte)(l >> 8); @@ -781,7 +781,7 @@ namespace BizHawk.Client.EmuHawk GameName = gameName, Authors = authors, LengthMs = lengthMs, - Rerecords = rerecords + Rerecords = rerecords, }; } diff --git a/src/BizHawk.Client.EmuHawk/AVOut/NutMuxer.cs b/src/BizHawk.Client.EmuHawk/AVOut/NutMuxer.cs index 3baa86aa1d..f6a3377382 100644 --- a/src/BizHawk.Client.EmuHawk/AVOut/NutMuxer.cs +++ b/src/BizHawk.Client.EmuHawk/AVOut/NutMuxer.cs @@ -615,7 +615,7 @@ namespace BizHawk.Client.EmuHawk Width = width, Height = height, FpsNum = fpsNum, - FpsDen = fpsDen + FpsDen = fpsDen, }; _avParams.Reduce(); // TimeBases in nut MUST be relatively prime diff --git a/src/BizHawk.Client.EmuHawk/AVOut/SynclessRecordingTools.cs b/src/BizHawk.Client.EmuHawk/AVOut/SynclessRecordingTools.cs index d6e5d4c4a4..357fa4dfb5 100644 --- a/src/BizHawk.Client.EmuHawk/AVOut/SynclessRecordingTools.cs +++ b/src/BizHawk.Client.EmuHawk/AVOut/SynclessRecordingTools.cs @@ -70,7 +70,7 @@ namespace BizHawk.Client.EmuHawk _mFrameInfos.Add(new FrameInfo { PngPath = png, - WavPath = wav + WavPath = wav, }); frame++; diff --git a/src/BizHawk.Client.EmuHawk/AVOut/VideoWriterChooserForm.cs b/src/BizHawk.Client.EmuHawk/AVOut/VideoWriterChooserForm.cs index 6f97451cd8..5f7b1a7e28 100644 --- a/src/BizHawk.Client.EmuHawk/AVOut/VideoWriterChooserForm.cs +++ b/src/BizHawk.Client.EmuHawk/AVOut/VideoWriterChooserForm.cs @@ -69,7 +69,7 @@ namespace BizHawk.Client.EmuHawk checkBoxPad = { Checked = config.AVWriterPad }, numericTextBoxH = { Text = Math.Max(0, config.AVWriterResizeHeight).ToString() }, numericTextBoxW = { Text = Math.Max(0, config.AVWriterResizeWidth).ToString() }, - labelDescriptionBody = { Text = "" } + labelDescriptionBody = { Text = "" }, }; int idx = 0; diff --git a/src/BizHawk.Client.EmuHawk/ArchiveChooser.cs b/src/BizHawk.Client.EmuHawk/ArchiveChooser.cs index 9105b94ab1..19dd9fa6d2 100644 --- a/src/BizHawk.Client.EmuHawk/ArchiveChooser.cs +++ b/src/BizHawk.Client.EmuHawk/ArchiveChooser.cs @@ -232,7 +232,7 @@ namespace BizHawk.Client.EmuHawk { return new SimpleMatcher { - Keys = searchKey.ToLowerInvariant().Split(Array.Empty(), StringSplitOptions.RemoveEmptyEntries) // splits on all whitespace chars + Keys = searchKey.ToLowerInvariant().Split(Array.Empty(), StringSplitOptions.RemoveEmptyEntries), // splits on all whitespace chars }; } else diff --git a/src/BizHawk.Client.EmuHawk/BizBox.cs b/src/BizHawk.Client.EmuHawk/BizBox.cs index f883316afc..b5ca1e428a 100644 --- a/src/BizHawk.Client.EmuHawk/BizBox.cs +++ b/src/BizHawk.Client.EmuHawk/BizBox.cs @@ -44,7 +44,7 @@ namespace BizHawk.Client.EmuHawk { CoreInfoPanel.Controls.Add(new BizBoxInfoControl(core.CoreAttr) { - Dock = DockStyle.Top + Dock = DockStyle.Top, }); } CoreInfoPanel.ResumeLayout(); diff --git a/src/BizHawk.Client.EmuHawk/CoreFeatureAnalysis.cs b/src/BizHawk.Client.EmuHawk/CoreFeatureAnalysis.cs index 6442d1299a..a335f7e16d 100644 --- a/src/BizHawk.Client.EmuHawk/CoreFeatureAnalysis.cs +++ b/src/BizHawk.Client.EmuHawk/CoreFeatureAnalysis.cs @@ -125,7 +125,7 @@ namespace BizHawk.Client.EmuHawk var ret = new TreeNode { Text = ci.CoreName + (ci.Released ? "" : " (UNRELEASED)"), - ForeColor = ci.Released ? Color.Black : Color.DarkGray + ForeColor = ci.Released ? Color.Black : Color.DarkGray, }; foreach (var service in ci.Services.Values) @@ -137,7 +137,7 @@ namespace BizHawk.Client.EmuHawk ForeColor = service.Complete ? Color.Black : Color.Red, ImageKey = img, SelectedImageKey = img, - StateImageKey = img + StateImageKey = img, }; foreach (var function in service.Functions) @@ -149,7 +149,7 @@ namespace BizHawk.Client.EmuHawk ForeColor = function.Complete ? Color.Black : Color.Red, ImageKey = img, SelectedImageKey = img, - StateImageKey = img + StateImageKey = img, }); } ret.Nodes.Add(serviceNode); @@ -167,7 +167,7 @@ namespace BizHawk.Client.EmuHawk ForeColor = Color.Red, ImageKey = img, SelectedImageKey = img, - StateImageKey = img + StateImageKey = img, }; ret.Nodes.Add(serviceNode); } @@ -227,7 +227,7 @@ namespace BizHawk.Client.EmuHawk ForeColor = core.CoreAttr.Released ? Color.Black : Color.DarkGray, ImageKey = img, SelectedImageKey = img, - StateImageKey = img + StateImageKey = img, }; CoreTree.Nodes.Add(coreNode); } diff --git a/src/BizHawk.Client.EmuHawk/CustomControls/FolderBrowserDialogEx.cs b/src/BizHawk.Client.EmuHawk/CustomControls/FolderBrowserDialogEx.cs index e8cd6f4205..1f8eb45df3 100644 --- a/src/BizHawk.Client.EmuHawk/CustomControls/FolderBrowserDialogEx.cs +++ b/src/BizHawk.Client.EmuHawk/CustomControls/FolderBrowserDialogEx.cs @@ -75,7 +75,7 @@ namespace BizHawk.Client.EmuHawk pszDisplayName = pszDisplayName, lpszTitle = Description, ulFlags = browseOptions, - lpfn = Callback + lpfn = Callback, }; pidlRet = SHBrowseForFolderW(ref bi); diff --git a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs index cc586e0f1b..0f273f04c3 100644 --- a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs +++ b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs @@ -477,7 +477,7 @@ namespace BizHawk.Client.EmuHawk Cell relativeCell = new Cell { RowIndex = cell.RowIndex - visibleRows.Start, - Column = cell.Column + Column = cell.Column, }; relativeCell.RowIndex -= CountLagFramesAbsolute(relativeCell.RowIndex.Value); diff --git a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs index 6d8305bce2..317dac542b 100644 --- a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs +++ b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs @@ -567,7 +567,7 @@ namespace BizHawk.Client.EmuHawk SelectCell(new Cell { RowIndex = index, - Column = _columns[0] + Column = _columns[0], }); _lastSelectedRow = index; } @@ -672,7 +672,7 @@ namespace BizHawk.Client.EmuHawk Columns = _columns, HorizontalOrientation = HorizontalOrientation, LagFramesToHide = LagFramesToHide, - HideWasLagFrames = HideWasLagFrames + HideWasLagFrames = HideWasLagFrames, }; public class InputRollSettings @@ -977,7 +977,7 @@ namespace BizHawk.Client.EmuHawk { Name = "RotateMenuItem", Text = "Rotate", - ShortcutKeyDisplayString = RotateHotkeyStr + ShortcutKeyDisplayString = RotateHotkeyStr, }; rotate.Click += (_, _) => HorizontalOrientation = !HorizontalOrientation; return [ new ToolStripSeparator(), rotate ]; @@ -1087,7 +1087,7 @@ namespace BizHawk.Client.EmuHawk CurrentCell = new Cell { Column = null, - RowIndex = null + RowIndex = null, }; base.OnMouseEnter(e); diff --git a/src/BizHawk.Client.EmuHawk/CustomControls/MsgBox.cs b/src/BizHawk.Client.EmuHawk/CustomControls/MsgBox.cs index b491d37ae8..c9b98cb2eb 100644 --- a/src/BizHawk.Client.EmuHawk/CustomControls/MsgBox.cs +++ b/src/BizHawk.Client.EmuHawk/CustomControls/MsgBox.cs @@ -143,16 +143,12 @@ namespace BizHawk.Client.EmuHawk.CustomControls int requiredHeight = messageLbl.Location.Y + messageLbl.Size.Height - btn2.Location.Y + ClientSize.Height + TextYMargin; int minSetWidth = ClientSize.Width; - int minSetHeight = ClientSize.Height; - ClientSize = new Size { Width = requiredWidth > minSetWidth ? requiredWidth : minSetWidth, - Height = requiredHeight > minSetHeight - ? requiredHeight - : minSetHeight + Height = Math.Max(ClientSize.Height, requiredHeight), }; } diff --git a/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs b/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs index d0d8f79291..ccc8ea1ad0 100644 --- a/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs +++ b/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs @@ -44,7 +44,7 @@ namespace BizHawk.Client.EmuHawk var menu = new ToolStripMenuItem { Name = "GeneratedColumnsSubMenu", - Text = "Columns" + Text = "Columns", }; var columns = inputRoll.AllColumns; @@ -57,7 +57,7 @@ namespace BizHawk.Client.EmuHawk Text = $"{column.Text} ({column.Name})", Checked = column.Visible, CheckOnClick = true, - Tag = column.Name + Tag = column.Name, }; menuItem.CheckedChanged += (o, ev) => diff --git a/src/BizHawk.Client.EmuHawk/Extensions/ToolExtensions.cs b/src/BizHawk.Client.EmuHawk/Extensions/ToolExtensions.cs index 7ada783187..94afebcbe5 100644 --- a/src/BizHawk.Client.EmuHawk/Extensions/ToolExtensions.cs +++ b/src/BizHawk.Client.EmuHawk/Extensions/ToolExtensions.cs @@ -185,7 +185,7 @@ namespace BizHawk.Client.EmuHawk.ToolExtensions var freezeItem = new ToolStripMenuItem { Text = recent.Frozen ? "&Unfreeze" : "&Freeze", - Image = recent.Frozen ? Properties.Resources.Unfreeze : Properties.Resources.Freeze + Image = recent.Frozen ? Properties.Resources.Unfreeze : Properties.Resources.Freeze, }; freezeItem.Click += (_, _) => recent.Frozen = !recent.Frozen; items.Add(freezeItem); @@ -204,7 +204,7 @@ namespace BizHawk.Client.EmuHawk.ToolExtensions { TextInputType = InputPrompt.InputType.Unsigned, Message = "Number of recent files to track", - InitialValue = recent.MAX_RECENT_FILES.ToString() + InitialValue = recent.MAX_RECENT_FILES.ToString(), }; if (!mainForm.ShowDialogWithTempMute(prompt).IsOk()) return; var val = int.Parse(prompt.PromptText); @@ -243,7 +243,7 @@ namespace BizHawk.Client.EmuHawk.ToolExtensions { Text = name, Enabled = !(maxSize.HasValue && domain.Size > maxSize.Value), - Checked = name == selected + Checked = name == selected, }; item.Click += (o, ev) => setCallback(name); return item; diff --git a/src/BizHawk.Client.EmuHawk/Input/Input.cs b/src/BizHawk.Client.EmuHawk/Input/Input.cs index 9a692e5e41..750f90c169 100644 --- a/src/BizHawk.Client.EmuHawk/Input/Input.cs +++ b/src/BizHawk.Client.EmuHawk/Input/Input.cs @@ -52,7 +52,7 @@ namespace BizHawk.Client.EmuHawk _updateThread = new Thread(UpdateThreadProc) { IsBackground = true, - Priority = ThreadPriority.AboveNormal // why not? this thread shouldn't be very heavy duty, and we want it to be responsive + Priority = ThreadPriority.AboveNormal, // why not? this thread shouldn't be very heavy duty, and we want it to be responsive }; _updateThread.Start(); } @@ -122,7 +122,7 @@ namespace BizHawk.Client.EmuHawk { EventType = newState ? InputEventType.Press : InputEventType.Release, LogicalButton = new(button1, mods, () => _getConfigCallback().ModifierKeysEffective), - Source = source + Source = source, }; _lastState[button1] = newState; diff --git a/src/BizHawk.Client.EmuHawk/LogWindow.cs b/src/BizHawk.Client.EmuHawk/LogWindow.cs index 320ef5a317..7d53cf53e3 100644 --- a/src/BizHawk.Client.EmuHawk/LogWindow.cs +++ b/src/BizHawk.Client.EmuHawk/LogWindow.cs @@ -56,7 +56,7 @@ namespace BizHawk.Client.EmuHawk { Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { - AutoFlush = true + AutoFlush = true, }); _logWriter.Close(); _logWriter = null; diff --git a/src/BizHawk.Client.EmuHawk/MainForm.cs b/src/BizHawk.Client.EmuHawk/MainForm.cs index 310f24d89f..8c5022c6b6 100644 --- a/src/BizHawk.Client.EmuHawk/MainForm.cs +++ b/src/BizHawk.Client.EmuHawk/MainForm.cs @@ -436,7 +436,7 @@ namespace BizHawk.Client.EmuHawk (b & MouseButtons.XButton1) != 0, (b & MouseButtons.XButton2) != 0 ); - } + }, }; FirmwareManager = new FirmwareManager(); movieSession = MovieSession = new MovieSession( @@ -3658,7 +3658,7 @@ namespace BizHawk.Client.EmuHawk { using var platformChooser = new PlatformChooser(Config) { - RomGame = rom + RomGame = rom, }; this.ShowDialogWithTempMute(platformChooser); return platformChooser.PlatformChoice; @@ -3727,7 +3727,7 @@ namespace BizHawk.Client.EmuHawk ChoosePlatform = ChoosePlatformForRom, Deterministic = deterministic, MessageCallback = AddOnScreenMessage, - OpenAdvanced = args.OpenAdvanced + OpenAdvanced = args.OpenAdvanced, }; FirmwareManager.RecentlyServed.Clear(); diff --git a/src/BizHawk.Client.EmuHawk/PlatformChooser.cs b/src/BizHawk.Client.EmuHawk/PlatformChooser.cs index 09b4bb6611..7767ffb66e 100644 --- a/src/BizHawk.Client.EmuHawk/PlatformChooser.cs +++ b/src/BizHawk.Client.EmuHawk/PlatformChooser.cs @@ -39,7 +39,7 @@ namespace BizHawk.Client.EmuHawk { Text = fullName, Location = UIHelper.Scale(new Point(15, 15 + (count * spacing))), - Size = UIHelper.Scale(new Size(200, 23)) + Size = UIHelper.Scale(new Size(200, 23)), }; PlatformsGroupBox.Controls.Add(radio); diff --git a/src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.Debug.cs b/src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.Debug.cs index 1a00c3214d..2bcfb1d0c3 100644 --- a/src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.Debug.cs +++ b/src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.Debug.cs @@ -199,8 +199,8 @@ namespace BizHawk.Client.EmuHawk Policy = { UserData2048Mode = DiscSectorReaderPolicy.EUserData2048Mode.InspectSector_AssumeForm1, - ThrowExceptions2048 = false - } + ThrowExceptions2048 = false, + }, }; _buf2352 = new byte[2352]; diff --git a/src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.cs b/src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.cs index e2bc2369e3..ae7e0f7db9 100644 --- a/src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.cs +++ b/src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.cs @@ -83,7 +83,7 @@ namespace BizHawk.Client.EmuHawk var loginItem = new ToolStripMenuItem("Login") { - Visible = !LoggedIn + Visible = !LoggedIn, }; loginItem.Click += (_, _) => { @@ -96,7 +96,7 @@ namespace BizHawk.Client.EmuHawk var logoutItem = new ToolStripMenuItem("Logout") { - Visible = LoggedIn + Visible = LoggedIn, }; logoutItem.Click += (_, _) => { @@ -114,7 +114,7 @@ namespace BizHawk.Client.EmuHawk var enableCheevosItem = new ToolStripMenuItem("Enable Achievements") { Checked = CheevosActive, - CheckOnClick = true + CheckOnClick = true, }; enableCheevosItem.CheckedChanged += (_, _) => CheevosActive = !CheevosActive; raDropDownItems.Add(enableCheevosItem); @@ -123,7 +123,7 @@ namespace BizHawk.Client.EmuHawk { Checked = LBoardNotifsActive, CheckOnClick = true, - Enabled = HardcoreMode + Enabled = HardcoreMode, }; enableLboardNotifsItem.CheckedChanged += (_, _) => LBoardNotifsActive = !LBoardNotifsActive; raDropDownItems.Add(enableLboardNotifsItem); @@ -132,7 +132,7 @@ namespace BizHawk.Client.EmuHawk { Checked = RichPresenceActive || HardcoreMode, CheckOnClick = true, - Enabled = !HardcoreMode + Enabled = !HardcoreMode, }; enableRichPresenceItem.CheckedChanged += (_, _) => RichPresenceActive = !RichPresenceActive; raDropDownItems.Add(enableRichPresenceItem); @@ -140,7 +140,7 @@ namespace BizHawk.Client.EmuHawk var enableHardcoreItem = new ToolStripMenuItem("Enable Hardcore Mode") { Checked = HardcoreMode, - CheckOnClick = true + CheckOnClick = true, }; enableHardcoreItem.CheckedChanged += (_, _) => { @@ -163,7 +163,7 @@ namespace BizHawk.Client.EmuHawk var enableSoundEffectsItem = new ToolStripMenuItem("Enable Sound Effects") { Checked = EnableSoundEffects, - CheckOnClick = true + CheckOnClick = true, }; enableSoundEffectsItem.CheckedChanged += (_, _) => EnableSoundEffects = !EnableSoundEffects; raDropDownItems.Add(enableSoundEffectsItem); @@ -171,7 +171,7 @@ namespace BizHawk.Client.EmuHawk var enableUnofficialCheevosItem = new ToolStripMenuItem("Test Unofficial Achievements") { Checked = AllowUnofficialCheevos, - CheckOnClick = true + CheckOnClick = true, }; enableUnofficialCheevosItem.CheckedChanged += (_, _) => ToggleUnofficialCheevos(); raDropDownItems.Add(enableUnofficialCheevosItem); diff --git a/src/BizHawk.Client.EmuHawk/RetroAchievements/RetroAchievements.GameVerification.cs b/src/BizHawk.Client.EmuHawk/RetroAchievements/RetroAchievements.GameVerification.cs index 035bbf01fd..a5af1391cf 100644 --- a/src/BizHawk.Client.EmuHawk/RetroAchievements/RetroAchievements.GameVerification.cs +++ b/src/BizHawk.Client.EmuHawk/RetroAchievements/RetroAchievements.GameVerification.cs @@ -35,8 +35,8 @@ namespace BizHawk.Client.EmuHawk Policy = { UserData2048Mode = DiscSectorReaderPolicy.EUserData2048Mode.InspectSector_AssumeForm1, - DeterministicClearBuffer = false // let's make this a little faster - } + DeterministicClearBuffer = false, // let's make this a little faster + }, }; var buf2048 = new byte[2048]; diff --git a/src/BizHawk.Client.EmuHawk/config/ControllerConfig.cs b/src/BizHawk.Client.EmuHawk/config/ControllerConfig.cs index 9ecf285a7a..8bc9138000 100644 --- a/src/BizHawk.Client.EmuHawk/config/ControllerConfig.cs +++ b/src/BizHawk.Client.EmuHawk/config/ControllerConfig.cs @@ -287,7 +287,7 @@ namespace BizHawk.Client.EmuHawk var pictureBox2 = new PictureBox { Image = Properties.Resources.C64Keyboard.Value, - Size = Properties.Resources.C64Keyboard.Value.Size + Size = Properties.Resources.C64Keyboard.Value.Size, }; tableLayoutPanel1.ColumnStyles[1].Width = Properties.Resources.C64Keyboard.Value.Width; pictureBox1.Height /= 2; diff --git a/src/BizHawk.Client.EmuHawk/config/ControllerConfig/AnalogBindPanel.cs b/src/BizHawk.Client.EmuHawk/config/ControllerConfig/AnalogBindPanel.cs index adfaf32931..6e6b1ae593 100644 --- a/src/BizHawk.Client.EmuHawk/config/ControllerConfig/AnalogBindPanel.cs +++ b/src/BizHawk.Client.EmuHawk/config/ControllerConfig/AnalogBindPanel.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Windows.Forms; -using System.Drawing; using BizHawk.Client.Common; @@ -25,7 +24,7 @@ namespace BizHawk.Client.EmuHawk { var ctrl = new AnalogBindControl(buttonName, _realConfigObject[buttonName]) { - Location = new Point(x, y) + Location = new(x, y), }; y += ctrl.Height + 4; diff --git a/src/BizHawk.Client.EmuHawk/config/ControllerConfig/ControllerConfigPanel.cs b/src/BizHawk.Client.EmuHawk/config/ControllerConfig/ControllerConfigPanel.cs index 27314a5713..ddb9fdcd5b 100644 --- a/src/BizHawk.Client.EmuHawk/config/ControllerConfig/ControllerConfigPanel.cs +++ b/src/BizHawk.Client.EmuHawk/config/ControllerConfig/ControllerConfigPanel.cs @@ -128,7 +128,7 @@ namespace BizHawk.Client.EmuHawk Location = new Point(x, y), Size = new Size(_inputSize, UIHelper.ScaleY(23)), TabIndex = i, - AutoTab = _autoTab + AutoTab = _autoTab, }; iw.SetupTooltip(Tooltip, null); @@ -140,7 +140,7 @@ namespace BizHawk.Client.EmuHawk { Location = new Point(x + _inputSize + _labelPadding, y + UIHelper.ScaleY(3)), Size = new Size(labelWidth, UIHelper.ScaleY(15)), - Text = _buttons[i].Replace('_', ' ').Trim() + Text = _buttons[i].Replace('_', ' ').Trim(), }; Tooltip.SetToolTip(label, label.Text); diff --git a/src/BizHawk.Client.EmuHawk/config/ControllerConfig/FeedbackBindControl.cs b/src/BizHawk.Client.EmuHawk/config/ControllerConfig/FeedbackBindControl.cs index e43a916007..4c32511698 100644 --- a/src/BizHawk.Client.EmuHawk/config/ControllerConfig/FeedbackBindControl.cs +++ b/src/BizHawk.Client.EmuHawk/config/ControllerConfig/FeedbackBindControl.cs @@ -114,7 +114,7 @@ namespace BizHawk.Client.EmuHawk { flpBindReadout, new SingleRowFLP { Controls = { flpButtons, flpPrescale } }, - } + }, }); ResumeLayout(); } diff --git a/src/BizHawk.Client.EmuHawk/config/FileExtensionPreferences.cs b/src/BizHawk.Client.EmuHawk/config/FileExtensionPreferences.cs index e8b852d778..f8d2330b81 100644 --- a/src/BizHawk.Client.EmuHawk/config/FileExtensionPreferences.cs +++ b/src/BizHawk.Client.EmuHawk/config/FileExtensionPreferences.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Drawing; using System.Linq; using System.Windows.Forms; @@ -27,7 +26,7 @@ namespace BizHawk.Client.EmuHawk { FileExtension = fileExt, OriginalPreference = sysID, - Location = new Point(UIHelper.ScaleX(15), UIHelper.ScaleY(15) + (spacing * count)) + Location = new(UIHelper.ScaleX(15), UIHelper.ScaleY(15) + (spacing * count)), }; count++; diff --git a/src/BizHawk.Client.EmuHawk/config/FirmwareConfig.cs b/src/BizHawk.Client.EmuHawk/config/FirmwareConfig.cs index ae41094b78..440821c1ca 100644 --- a/src/BizHawk.Client.EmuHawk/config/FirmwareConfig.cs +++ b/src/BizHawk.Client.EmuHawk/config/FirmwareConfig.cs @@ -210,7 +210,7 @@ namespace BizHawk.Client.EmuHawk Tag = fr, UseItemStyleForSubItems = false, ImageIndex = (int) FirmwareOptionStatus.Unknown, - ToolTipText = null + ToolTipText = null, }; lvi.SubItems.Add(sysID); lvi.SubItems.Add(fr.ID.Firmware); @@ -546,10 +546,7 @@ namespace BizHawk.Client.EmuHawk var fciDialog = new FirmwareConfigInfo { - lblFirmware = - { - Text = $"{fr.ID} ({fr.Description})" - } + lblFirmware = { Text = $"{fr.ID} ({fr.Description})" }, }; foreach (var o in options) diff --git a/src/BizHawk.Client.EmuHawk/config/GB/ColorChooserForm.cs b/src/BizHawk.Client.EmuHawk/config/GB/ColorChooserForm.cs index 007cb98410..0fcb641db4 100644 --- a/src/BizHawk.Client.EmuHawk/config/GB/ColorChooserForm.cs +++ b/src/BizHawk.Client.EmuHawk/config/GB/ColorChooserForm.cs @@ -131,7 +131,7 @@ namespace BizHawk.Client.EmuHawk { AllowFullOpen = true, AnyColor = true, - Color = _colors[i] + Color = _colors[i], }; // custom colors are ints, not Color structs? diff --git a/src/BizHawk.Client.EmuHawk/config/GB/SameBoyColorChooserForm.cs b/src/BizHawk.Client.EmuHawk/config/GB/SameBoyColorChooserForm.cs index 8aa70a0427..0647b3c73e 100644 --- a/src/BizHawk.Client.EmuHawk/config/GB/SameBoyColorChooserForm.cs +++ b/src/BizHawk.Client.EmuHawk/config/GB/SameBoyColorChooserForm.cs @@ -94,7 +94,7 @@ namespace BizHawk.Client.EmuHawk { AllowFullOpen = true, AnyColor = true, - Color = _colors[i] + Color = _colors[i], }; // custom colors are ints, not Color structs? diff --git a/src/BizHawk.Client.EmuHawk/config/HotkeyConfig.cs b/src/BizHawk.Client.EmuHawk/config/HotkeyConfig.cs index d13726a2d3..6174fef822 100644 --- a/src/BizHawk.Client.EmuHawk/config/HotkeyConfig.cs +++ b/src/BizHawk.Client.EmuHawk/config/HotkeyConfig.cs @@ -108,7 +108,7 @@ namespace BizHawk.Client.EmuHawk { Text = b.DisplayName, Location = new Point(x, y), - Size = new Size(iwOffsetX - UIHelper.ScaleX(2), UIHelper.ScaleY(15)) + Size = new(iwOffsetX - UIHelper.ScaleX(2), UIHelper.ScaleY(15)), }; var w = new InputCompositeWidget(_config.ModifierKeysEffective) @@ -116,7 +116,7 @@ namespace BizHawk.Client.EmuHawk Location = new Point(x + iwOffsetX, y + iwOffsetY), AutoTab = AutoTabCheckBox.Checked, Width = iwWidth, - WidgetName = k + WidgetName = k, }; w.SetupTooltip(toolTip1, b.ToolTip); @@ -141,7 +141,7 @@ namespace BizHawk.Client.EmuHawk { Text = "Save States hotkeys operate with branches when TAStudio is engaged.", Location = new Point(x, y), - Size = new Size(iwWidth + iwOffsetX, HotkeyTabControl.Height - y) + Size = new(iwWidth + iwOffsetX, HotkeyTabControl.Height - y), }); } diff --git a/src/BizHawk.Client.EmuHawk/config/Messages/ColorRow.cs b/src/BizHawk.Client.EmuHawk/config/Messages/ColorRow.cs index 341d852f9a..f812ea219a 100644 --- a/src/BizHawk.Client.EmuHawk/config/Messages/ColorRow.cs +++ b/src/BizHawk.Client.EmuHawk/config/Messages/ColorRow.cs @@ -37,7 +37,8 @@ namespace BizHawk.Client.EmuHawk { using var colorPicker = new ColorDialog { - FullOpen = true, Color = Color.FromArgb(_selectedColor) + Color = Color.FromArgb(_selectedColor), + FullOpen = true, }; if (colorPicker.ShowDialog().IsOk()) diff --git a/src/BizHawk.Client.EmuHawk/config/Messages/MessageConfig.cs b/src/BizHawk.Client.EmuHawk/config/Messages/MessageConfig.cs index 4ed3705441..27761beecb 100644 --- a/src/BizHawk.Client.EmuHawk/config/Messages/MessageConfig.cs +++ b/src/BizHawk.Client.EmuHawk/config/Messages/MessageConfig.cs @@ -106,7 +106,7 @@ namespace BizHawk.Client.EmuHawk var row = new MessageRow { Name = name, - Location = new Point(10, y) + Location = new(10, y), }; row.Size = new Size(MessageTypeBox.Width - 12, row.Size.Height); row.Bind(name, pos, e => SetMessagePosition(row, e)); @@ -132,7 +132,7 @@ namespace BizHawk.Client.EmuHawk Name = name, Location = new Point(10, y), DisplayName = name, - SelectedColor = argb + SelectedColor = argb, }; row.Size = new Size(ColorBox.Width - 12, row.Size.Height); y += row.Size.Height; diff --git a/src/BizHawk.Client.EmuHawk/config/NES/NesControllerSettings.cs b/src/BizHawk.Client.EmuHawk/config/NES/NesControllerSettings.cs index 34a504c2e3..c67b554fc7 100644 --- a/src/BizHawk.Client.EmuHawk/config/NES/NesControllerSettings.cs +++ b/src/BizHawk.Client.EmuHawk/config/NES/NesControllerSettings.cs @@ -43,7 +43,7 @@ namespace BizHawk.Client.EmuHawk Famicom = checkBoxFamicom.Checked, FamicomExpPort = (string)comboBoxFamicom.SelectedItem, NesLeftPort = (string)comboBoxNESL.SelectedItem, - NesRightPort = (string)comboBoxNESR.SelectedItem + NesRightPort = (string)comboBoxNESR.SelectedItem, }; bool changed = NESControlSettings.NeedsReboot(controls, _syncSettings.Controls); diff --git a/src/BizHawk.Client.EmuHawk/config/PSX/PSXControllerConfig.cs b/src/BizHawk.Client.EmuHawk/config/PSX/PSXControllerConfig.cs index d811567d13..6090d62fc1 100644 --- a/src/BizHawk.Client.EmuHawk/config/PSX/PSXControllerConfig.cs +++ b/src/BizHawk.Client.EmuHawk/config/PSX/PSXControllerConfig.cs @@ -60,7 +60,7 @@ namespace BizHawk.Client.EmuHawk var uc = new OctoshockFIOConfigUser { Memcards = { [0] = cbMemcard_1.Checked, [1] = cbMemcard_2.Checked }, - Multitaps = { [0] = cbMultitap_1.Checked, [1] = cbMultitap_2.Checked } + Multitaps = [ cbMultitap_1.Checked, cbMultitap_2.Checked ], }; var combos = new[] { combo_1_1, combo_1_2, combo_1_3, combo_1_4, combo_2_1, combo_2_2, combo_2_3, combo_2_4 }; diff --git a/src/BizHawk.Client.EmuHawk/config/PathConfig.cs b/src/BizHawk.Client.EmuHawk/config/PathConfig.cs index ec237b8c23..3056958be6 100644 --- a/src/BizHawk.Client.EmuHawk/config/PathConfig.cs +++ b/src/BizHawk.Client.EmuHawk/config/PathConfig.cs @@ -78,7 +78,7 @@ namespace BizHawk.Client.EmuHawk MinimumSize = new Size(UIHelper.ScaleX(26), UIHelper.ScaleY(23)), AutoCompleteMode = AutoCompleteMode.SuggestAppend, AutoCompleteCustomSource = AutoCompleteOptions, - AutoCompleteSource = AutoCompleteSource.CustomSource + AutoCompleteSource = AutoCompleteSource.CustomSource, }; var btn = new Button @@ -88,7 +88,7 @@ namespace BizHawk.Client.EmuHawk Location = new Point(widgetOffset, y + buttonOffsetY), Size = new Size(buttonWidth, buttonHeight), Name = path.Type, - Anchor = AnchorStyles.Top | AnchorStyles.Right + Anchor = AnchorStyles.Top | AnchorStyles.Right, }; var tempBox = box; @@ -102,7 +102,7 @@ namespace BizHawk.Client.EmuHawk Location = new Point(widgetOffset + buttonWidth + padding, y + UIHelper.ScaleY(4)), Size = new Size(UIHelper.ScaleX(100), UIHelper.ScaleY(15)), Name = path.Type, - Anchor = AnchorStyles.Top | AnchorStyles.Right + Anchor = AnchorStyles.Top | AnchorStyles.Right, }; t.Controls.Add(label); @@ -119,7 +119,7 @@ namespace BizHawk.Client.EmuHawk Name = system, Text = systemDisplayName, Width = UIHelper.ScaleX(200), // Initial Left/Width of child controls are based on this size. - AutoScroll = true + AutoScroll = true, }; PopulateTabPage(t, system); comboSystem.Items.Add(systemDisplayName); @@ -190,7 +190,7 @@ namespace BizHawk.Client.EmuHawk using var f = new FolderBrowserDialog { Description = $"Set the directory for {name}", - SelectedPath = _pathEntries.AbsolutePathFor(box.Text, system) + SelectedPath = _pathEntries.AbsolutePathFor(box.Text, system), }; result = f.ShowDialog(); selectedPath = f.SelectedPath; @@ -200,7 +200,7 @@ namespace BizHawk.Client.EmuHawk using var f = new FolderBrowserEx { Description = $"Set the directory for {name}", - SelectedPath = _pathEntries.AbsolutePathFor(box.Text, system) + SelectedPath = _pathEntries.AbsolutePathFor(box.Text, system), }; result = f.ShowDialog(); selectedPath = f.SelectedPath; diff --git a/src/BizHawk.Client.EmuHawk/config/SNES/BSNESOptions.cs b/src/BizHawk.Client.EmuHawk/config/SNES/BSNESOptions.cs index 9c64c457e6..aa447d8e46 100644 --- a/src/BizHawk.Client.EmuHawk/config/SNES/BSNESOptions.cs +++ b/src/BizHawk.Client.EmuHawk/config/SNES/BSNESOptions.cs @@ -55,7 +55,7 @@ namespace BizHawk.Client.EmuHawk ShowBg3_0 = s.ShowBG3_0, ShowBg3_1 = s.ShowBG3_1, ShowBg4_0 = s.ShowBG4_0, - ShowBg4_1 = s.ShowBG4_1 + ShowBg4_1 = s.ShowBG4_1, }; var result = dialogParent.ShowDialogAsChild(dlg); diff --git a/src/BizHawk.Client.EmuHawk/config/SNES/SNESOptions.cs b/src/BizHawk.Client.EmuHawk/config/SNES/SNESOptions.cs index a68370707b..c976ba3ed4 100644 --- a/src/BizHawk.Client.EmuHawk/config/SNES/SNESOptions.cs +++ b/src/BizHawk.Client.EmuHawk/config/SNES/SNESOptions.cs @@ -32,7 +32,7 @@ namespace BizHawk.Client.EmuHawk ShowBg1 = s.ShowBG1_0, ShowBg2 = s.ShowBG2_0, ShowBg3 = s.ShowBG3_0, - ShowBg4 = s.ShowBG4_0 + ShowBg4 = s.ShowBG4_0, }; var result = dialogParent.ShowDialogAsChild(dlg); diff --git a/src/BizHawk.Client.EmuHawk/config/TI83/TI83PaletteConfig.cs b/src/BizHawk.Client.EmuHawk/config/TI83/TI83PaletteConfig.cs index 65dc26a589..6dc7c092d6 100644 --- a/src/BizHawk.Client.EmuHawk/config/TI83/TI83PaletteConfig.cs +++ b/src/BizHawk.Client.EmuHawk/config/TI83/TI83PaletteConfig.cs @@ -56,7 +56,7 @@ namespace BizHawk.Client.EmuHawk AllowFullOpen = true, AnyColor = true, Color = BackgroundPanel.BackColor, - CustomColors = new[] { customColor } + CustomColors = [ customColor ], }; if (dlg.ShowDialog().IsOk()) @@ -77,7 +77,7 @@ namespace BizHawk.Client.EmuHawk AllowFullOpen = true, AnyColor = true, Color = ForeGroundPanel.BackColor, - CustomColors = new[] { customColor } + CustomColors = [ customColor ], }; if (dlg.ShowDialog().IsOk()) diff --git a/src/BizHawk.Client.EmuHawk/debug/N64RomByteswapToolForm.cs b/src/BizHawk.Client.EmuHawk/debug/N64RomByteswapToolForm.cs index 9e86236603..e484208689 100644 --- a/src/BizHawk.Client.EmuHawk/debug/N64RomByteswapToolForm.cs +++ b/src/BizHawk.Client.EmuHawk/debug/N64RomByteswapToolForm.cs @@ -76,7 +76,7 @@ namespace BizHawk.Client.EmuHawk.ForDebugging new SingleRowFLP { Controls = { new LabelEx { Text = "to" }, comboFormats } }, new SingleRowFLP { Controls = { txtTargetFile, GenControl.Button("(browse)", width: 75, ChooseTargetFile) } }, GenControl.Button("--> convert", width: 75, DoConvert), - } + }, }); ResumeLayout(); } diff --git a/src/BizHawk.Client.EmuHawk/movie/PlayMovie.cs b/src/BizHawk.Client.EmuHawk/movie/PlayMovie.cs index 2cead05a55..7fb03b1f52 100644 --- a/src/BizHawk.Client.EmuHawk/movie/PlayMovie.cs +++ b/src/BizHawk.Client.EmuHawk/movie/PlayMovie.cs @@ -89,7 +89,7 @@ namespace BizHawk.Client.EmuHawk string displayedPath = entry.Filename.RemovePrefix(_config.PathEntries.MovieAbsolutePath() + Path.DirectorySeparatorChar); e.Item = new ListViewItem(displayedPath) { - ToolTipText = entry.Filename + ToolTipText = entry.Filename, }; e.Item.SubItems.Add(entry.SystemID); e.Item.SubItems.Add(entry.GameName); @@ -476,7 +476,7 @@ namespace BizHawk.Client.EmuHawk { Keys = DetailsView.Items[i].Text, Values = DetailsView.Items[i].SubItems[1].Text, - BackgroundColor = DetailsView.Items[i].BackColor + BackgroundColor = DetailsView.Items[i].BackColor, }); } diff --git a/src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs b/src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs index 3229c89b14..ace9a8deab 100644 --- a/src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs +++ b/src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs @@ -798,7 +798,7 @@ namespace BizHawk.Client.EmuHawk Probability = 0.0, Location = new Point(marginLeft, startY + accumulatedY), TabIndex = count + 1, - ProbabilityChangedCallback = AssessRunButtonStatus + ProbabilityChangedCallback = AssessRunButtonStatus, }; control.Scale(UIHelper.AutoScaleFactor); diff --git a/src/BizHawk.Client.EmuHawk/tools/Debugger/BreakpointControl.cs b/src/BizHawk.Client.EmuHawk/tools/Debugger/BreakpointControl.cs index 7b2c23a94e..2a76cc1e73 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Debugger/BreakpointControl.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Debugger/BreakpointControl.cs @@ -279,7 +279,7 @@ namespace BizHawk.Client.EmuHawk var b = new AddBreakpointDialog(operation) { - MaxAddressSize = MemoryDomains.SystemBus.Size - 1 + MaxAddressSize = MemoryDomains.SystemBus.Size - 1, }; if (type != null) diff --git a/src/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs b/src/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs index 20807aae61..a028c1f346 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Debugger/RegisterBoxControl.cs @@ -138,7 +138,7 @@ namespace BizHawk.Client.EmuHawk { Text = name, Location = new Point(UIHelper.ScaleX(5), y + UIHelper.ScaleY(2)), - Size = new Size(UIHelper.ScaleX(width + 5), UIHelper.ScaleY(15)) + Size = new(UIHelper.ScaleX(width + 5), UIHelper.ScaleY(15)), }); if (_canSetCpuRegisters) @@ -150,7 +150,7 @@ namespace BizHawk.Client.EmuHawk Width = UIHelper.ScaleX(6 + ((rv.BitSize / 4) * 9)), Location = new Point(UIHelper.ScaleX(width + 10), y), MaxLength = rv.BitSize / 4, - CharacterCasing = CharacterCasing.Upper + CharacterCasing = CharacterCasing.Upper, }; t.TextChanged += (o, e) => @@ -183,7 +183,7 @@ namespace BizHawk.Client.EmuHawk Name = name, Text = rv.Value.ToHexString(rv.BitSize / 4), Size = new Size(UIHelper.ScaleX(6 + ((rv.BitSize / 4) * 9)), UIHelper.ScaleY(15)), - Location = new Point(UIHelper.ScaleX(width + 12), y + 2) + Location = new(UIHelper.ScaleX(width + 12), y + 2), }); } @@ -200,7 +200,7 @@ namespace BizHawk.Client.EmuHawk Location = new Point(UIHelper.ScaleX(5), y), BorderStyle = BorderStyle.None, Size = new Size(UIHelper.ScaleX(240), UIHelper.ScaleY(23)), - AutoScroll = true + AutoScroll = true, }; foreach (var (name, rv) in registers.Where(r => r.Value.BitSize == 1).OrderByDescending(x => x.Key)) @@ -214,7 +214,7 @@ namespace BizHawk.Client.EmuHawk Location = new Point(UIHelper.ScaleX(40), y), Dock = DockStyle.Left, Size = new Size(UIHelper.ScaleX(23), UIHelper.ScaleY(23)), - Enabled = _canSetCpuRegisters + Enabled = _canSetCpuRegisters, }; c.CheckedChanged += (o, e) => diff --git a/src/BizHawk.Client.EmuHawk/tools/ExternalToolManager.cs b/src/BizHawk.Client.EmuHawk/tools/ExternalToolManager.cs index dab6c50c1a..5a8ccf5c3e 100644 --- a/src/BizHawk.Client.EmuHawk/tools/ExternalToolManager.cs +++ b/src/BizHawk.Client.EmuHawk/tools/ExternalToolManager.cs @@ -95,7 +95,7 @@ namespace BizHawk.Client.EmuHawk { IncludeSubdirectories = false, NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite | NotifyFilters.FileName, - Filter = "*.dll" + Filter = "*.dll", }; DirectoryMonitor.Created += DirectoryMonitor_Created; DirectoryMonitor.EnableRaisingEvents = true; diff --git a/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs b/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs index 048aa51207..794da4e6ff 100644 --- a/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs +++ b/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs @@ -1035,7 +1035,7 @@ namespace BizHawk.Client.EmuHawk AllowFullOpen = true, AnyColor = true, FullOpen = true, - Color = Spriteback + Color = Spriteback, }; if (this.ShowDialogWithTempMute(dlg).IsOk()) diff --git a/src/BizHawk.Client.EmuHawk/tools/GB/GBPrinterView.cs b/src/BizHawk.Client.EmuHawk/tools/GB/GBPrinterView.cs index a22c649ed9..ce543bc333 100644 --- a/src/BizHawk.Client.EmuHawk/tools/GB/GBPrinterView.cs +++ b/src/BizHawk.Client.EmuHawk/tools/GB/GBPrinterView.cs @@ -50,7 +50,7 @@ namespace BizHawk.Client.EmuHawk Matrix11 = (0xEB - 0x10) / 255F, Matrix41 = 0x10 / 255F, Matrix22 = (0xD7 - 0x18) / 255F, - Matrix42 = 0x18 / 255F + Matrix42 = 0x18 / 255F, }; paperView.ChangeBitmapSize(PaperWidth, PaperWidth); diff --git a/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs b/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs index 52cb5362a3..d0a99bc0e1 100644 --- a/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs +++ b/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexEditor.cs @@ -1447,7 +1447,7 @@ namespace BizHawk.Client.EmuHawk InitialLocation = PointToScreen(AddressesLabel.Location), InitialValue = _findStr, SearchTypeChangedCallback = SearchTypeChanged, - InitialText = _lastSearchWasText + InitialText = _lastSearchWasText, }; _hexFind.Show(); @@ -1503,7 +1503,7 @@ namespace BizHawk.Client.EmuHawk var romMenuItem = new ToolStripMenuItem { Text = _romDomain.Name, - Checked = _domain.Name == _romDomain.Name + Checked = _domain.Name == _romDomain.Name, }; MemoryDomainsMenuItem.DropDownItems.Add(new ToolStripSeparator()); @@ -1540,7 +1540,7 @@ namespace BizHawk.Client.EmuHawk { Text = "Go to Address", StartLocation = this.ChildPointToScreen(MemoryViewerBox), - Message = "Enter a hexadecimal value" + Message = "Enter a hexadecimal value", }; if (this.ShowDialogWithTempMute(inputPrompt).IsOk() && inputPrompt.PromptText.IsHex()) @@ -1599,7 +1599,7 @@ namespace BizHawk.Client.EmuHawk using var poke = new RamPoke(DialogController, watches, MainForm.CheatList) { InitialLocation = this.ChildPointToScreen(AddressLabel), - ParentTool = this + ParentTool = this, }; this.ShowDialogWithTempMute(poke); GeneralUpdate(); diff --git a/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs b/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs index 18bcc6b5ca..fb9f2c5afd 100644 --- a/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs +++ b/src/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs @@ -78,7 +78,7 @@ namespace BizHawk.Client.EmuHawk Nullable = HexRadio.Checked, Text = text, Size = size, - Location = location + Location = location, }; } else @@ -87,7 +87,7 @@ namespace BizHawk.Client.EmuHawk { Text = text, Size = size, - Location = location + Location = location, }; } diff --git a/src/BizHawk.Client.EmuHawk/tools/Lua/Libraries/TAStudioLuaLibrary.cs b/src/BizHawk.Client.EmuHawk/tools/Lua/Libraries/TAStudioLuaLibrary.cs index 1d811b36e3..1593a24edb 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Lua/Libraries/TAStudioLuaLibrary.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Lua/Libraries/TAStudioLuaLibrary.cs @@ -261,7 +261,7 @@ namespace BizHawk.Client.EmuHawk { Type = LuaChangeTypes.InsertFrames, Frame = frame, - Number = number + Number = number, }); } } @@ -276,7 +276,7 @@ namespace BizHawk.Client.EmuHawk { Type = LuaChangeTypes.DeleteFrames, Frame = frame, - Number = number + Number = number, }); } } @@ -291,7 +291,7 @@ namespace BizHawk.Client.EmuHawk { Type = LuaChangeTypes.ClearFrames, Frame = frame, - Number = number + Number = number, }); } } diff --git a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaCanvas.cs b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaCanvas.cs index 729b9fd110..85b17f1cbb 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaCanvas.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaCanvas.cs @@ -65,7 +65,7 @@ namespace BizHawk.Client.EmuHawk Size = new Size(100, 50), SizeMode = PictureBoxSizeMode.AutoSize, TabIndex = 0, - TabStop = false + TabStop = false, }; Controls.Add(luaPictureBox); diff --git a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs index 915b1769aa..005548660c 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs @@ -936,7 +936,7 @@ namespace BizHawk.Client.EmuHawk Process.Start(new ProcessStartInfo { Verb = "Open", - FileName = file.Path + FileName = file.Path, }); } } @@ -1086,7 +1086,7 @@ namespace BizHawk.Client.EmuHawk { new LuaRegisteredFunctionsList((MainForm) MainForm, LuaImp.RegisteredFunctions) { - StartLocation = this.ChildPointToScreen(LuaListView) + StartLocation = this.ChildPointToScreen(LuaListView), }.Show(); } } diff --git a/src/BizHawk.Client.EmuHawk/tools/Macros/MacroInput.cs b/src/BizHawk.Client.EmuHawk/tools/Macros/MacroInput.cs index 2c330313ca..dc865572e0 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Macros/MacroInput.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Macros/MacroInput.cs @@ -56,7 +56,7 @@ namespace BizHawk.Client.EmuHawk var main = new MovieZone(Emulator, Tools, MovieSession, 0, CurrentMovie.InputLogLength) { - Name = "Entire Movie" + Name = "Entire Movie", }; _zones.Add(main); @@ -130,7 +130,7 @@ namespace BizHawk.Client.EmuHawk var newZone = new MovieZone(Emulator, Tools, MovieSession, (int) StartNum.Value, (int) (EndNum.Value - StartNum.Value + 1)) { - Name = $"Zone {_zones.Count}" + Name = $"Zone {_zones.Count}", }; _zones.Add(newZone); ZonesList.Items.Add($"{newZone.Name} - length: {newZone.Length}"); diff --git a/src/BizHawk.Client.EmuHawk/tools/MultiDiskBundler/MultiDiskBundler.cs b/src/BizHawk.Client.EmuHawk/tools/MultiDiskBundler/MultiDiskBundler.cs index d75b7f8257..7a257bdf2d 100644 --- a/src/BizHawk.Client.EmuHawk/tools/MultiDiskBundler/MultiDiskBundler.cs +++ b/src/BizHawk.Client.EmuHawk/tools/MultiDiskBundler/MultiDiskBundler.cs @@ -179,7 +179,7 @@ namespace BizHawk.Client.EmuHawk Text = "", Location = UIHelper.Scale(new Point(6, start)), Size = new Size(FileSelectorPanel.ClientSize.Width - UIHelper.ScaleX(12), UIHelper.ScaleY(41)), - Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top + Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top, }; var mdf = new MultiDiskFileSelector(MainForm, Config.PathEntries, @@ -187,7 +187,7 @@ namespace BizHawk.Client.EmuHawk { Location = UIHelper.Scale(new Point(7, 12)), Width = groupBox.ClientSize.Width - UIHelper.ScaleX(13), - Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top + Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top, }; mdf.NameChanged += FileSelector_NameChanged; diff --git a/src/BizHawk.Client.EmuHawk/tools/NES/NESMusicRipper.cs b/src/BizHawk.Client.EmuHawk/tools/NES/NESMusicRipper.cs index 7df653e932..c1d7c859ee 100644 --- a/src/BizHawk.Client.EmuHawk/tools/NES/NESMusicRipper.cs +++ b/src/BizHawk.Client.EmuHawk/tools/NES/NESMusicRipper.cs @@ -462,26 +462,26 @@ namespace BizHawk.Client.EmuHawk En = !apu.pulse[0].Debug_IsSilenced, Vol = (byte) apu.pulse[0].Debug_Volume, Note = pulse0Note, - Type = (byte) apu.pulse[0].Debug_DutyType + Type = (byte) apu.pulse[0].Debug_DutyType, }, Pulse1 = { En = !apu.pulse[1].Debug_IsSilenced, Vol = (byte) apu.pulse[1].Debug_Volume, Note = pulse1Note, - Type = (byte) apu.pulse[1].Debug_DutyType + Type = (byte) apu.pulse[1].Debug_DutyType, }, Triangle = { En = !apu.triangle.Debug_IsSilenced, - Note = triNote + Note = triNote, }, Noise = { En = !apu.noise.Debug_IsSilenced, Vol = (byte) apu.noise.Debug_Volume, - Note = noiseNote - } + Note = noiseNote, + }, }; _log.Add(rec); diff --git a/src/BizHawk.Client.EmuHawk/tools/PCE/PCESoundDebugger.cs b/src/BizHawk.Client.EmuHawk/tools/PCE/PCESoundDebugger.cs index ed85042a82..83f9c270c9 100644 --- a/src/BizHawk.Client.EmuHawk/tools/PCE/PCESoundDebugger.cs +++ b/src/BizHawk.Client.EmuHawk/tools/PCE/PCESoundDebugger.cs @@ -116,7 +116,7 @@ namespace BizHawk.Client.EmuHawk WaveForm = waveform, Active = true, HitCount = 1, - Index = _psgEntries.Count + Index = _psgEntries.Count, }; _psgEntries.Add(entry); _psgEntryTable[md5] = entry; diff --git a/src/BizHawk.Client.EmuHawk/tools/SNES/SNESGraphicsDebugger.cs b/src/BizHawk.Client.EmuHawk/tools/SNES/SNESGraphicsDebugger.cs index c4d489eb8b..707e23d2b1 100644 --- a/src/BizHawk.Client.EmuHawk/tools/SNES/SNESGraphicsDebugger.cs +++ b/src/BizHawk.Client.EmuHawk/tools/SNES/SNESGraphicsDebugger.cs @@ -597,7 +597,7 @@ namespace BizHawk.Client.EmuHawk X = start % 16, Y = start / 16, Width = num, - Height = num / 16 + Height = num / 16, }; if (ret.Height == 0) ret.Height = 1; @@ -1040,7 +1040,7 @@ namespace BizHawk.Client.EmuHawk { Bpp = bpp, Type = CurrDisplaySelection, - Tile = tileNum + Tile = tileNum, }; currTileDataState.Address = (bpp == 7 ? 8 : bpp) * 8 * currTileDataState.Tile; currTileDataState.Palette = currPaletteSelection.start; @@ -1161,7 +1161,7 @@ namespace BizHawk.Client.EmuHawk { bgnum = (int) CurrDisplaySelection, entry = map[tloc], - Location = new Point(tx, ty) + Location = new Point(tx, ty), }; SetTab(tpMapEntry); @@ -1226,7 +1226,7 @@ namespace BizHawk.Client.EmuHawk { var cd = new ColorDialog { - Color = pnBackdropColor.BackColor + Color = pnBackdropColor.BackColor, }; if (cd.ShowDialog(this).IsOk()) diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs index 360989f528..6886b5995b 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs @@ -173,7 +173,7 @@ namespace BizHawk.Client.EmuHawk ChangeLog = new(Movie), TimeStamp = DateTime.Now, Markers = Movie.Markers.DeepClone(), - UserText = Movie.Branches.NewBranchText + UserText = Movie.Branches.NewBranchText, }; } @@ -565,7 +565,7 @@ namespace BizHawk.Client.EmuHawk Text = $"Text for branch {index + 1}", TextInputType = InputPrompt.InputType.Text, Message = "Enter a message", - InitialValue = branch.UserText + InitialValue = branch.UserText, }; i.FollowMousePointer(); diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs index 633dfbb375..da63b015da 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs @@ -169,10 +169,7 @@ namespace BizHawk.Client.EmuHawk Text = $"Marker for frame {frame}", TextInputType = InputPrompt.InputType.Text, Message = "Enter a message", - InitialValue = - Markers.IsMarker(frame) ? - Markers.PreviousOrCurrent(frame).Message : - "" + InitialValue = Markers.IsMarker(frame) ? Markers.PreviousOrCurrent(frame).Message : string.Empty, }; i.FollowMousePointer(); @@ -214,10 +211,7 @@ namespace BizHawk.Client.EmuHawk Text = $"Marker for frame {markerFrame}", TextInputType = InputPrompt.InputType.Text, Message = "Enter a message", - InitialValue = - Markers.IsMarker(markerFrame) - ? Markers.PreviousOrCurrent(markerFrame).Message - : "" + InitialValue = Markers.IsMarker(markerFrame) ? Markers.PreviousOrCurrent(markerFrame).Message : string.Empty, }; i.FollowMousePointer(); diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs index 9a556f78b2..d181723e2a 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs @@ -776,7 +776,7 @@ namespace BizHawk.Client.EmuHawk { TextInputType = InputPrompt.InputType.Unsigned, Message = "Number of Undo Levels to keep", - InitialValue = CurrentTasMovie.ChangeLog.MaxSteps.ToString() + InitialValue = CurrentTasMovie.ChangeLog.MaxSteps.ToString(), }; var result = MainForm.DoWithTempMute(() => prompt.ShowDialogOnScreen()); @@ -808,7 +808,7 @@ namespace BizHawk.Client.EmuHawk { TextInputType = InputPrompt.InputType.Unsigned, Message = "Autosave Interval in seconds\nSet to 0 to disable", - InitialValue = (Settings.AutosaveInterval / 1000).ToString() + InitialValue = (Settings.AutosaveInterval / 1000).ToString(), }; var result = MainForm.DoWithTempMute(() => prompt.ShowDialogOnScreen()); @@ -910,7 +910,7 @@ namespace BizHawk.Client.EmuHawk using MovieHeaderEditor form = new(CurrentTasMovie, Config) { Owner = this, - Location = this.ChildPointToScreen(TasView) + Location = this.ChildPointToScreen(TasView), }; form.ShowDialogOnScreen(); } @@ -924,7 +924,7 @@ namespace BizHawk.Client.EmuHawk false) { Owner = this, - Location = this.ChildPointToScreen(TasView) + Location = this.ChildPointToScreen(TasView), }; form.ShowDialogOnScreen(); } @@ -935,7 +935,7 @@ namespace BizHawk.Client.EmuHawk { Owner = this, StartPosition = FormStartPosition.Manual, - Location = this.ChildPointToScreen(TasView) + Location = this.ChildPointToScreen(TasView), }; form.ShowDialogOnScreen(); } @@ -950,7 +950,7 @@ namespace BizHawk.Client.EmuHawk { Owner = this, StartPosition = FormStartPosition.Manual, - Location = this.ChildPointToScreen(TasView) + Location = this.ChildPointToScreen(TasView), }; form.ShowDialogOnScreen(); } @@ -964,7 +964,7 @@ namespace BizHawk.Client.EmuHawk true) { Owner = this, - Location = this.ChildPointToScreen(TasView) + Location = this.ChildPointToScreen(TasView), }; form.ShowDialogOnScreen(); } @@ -1086,7 +1086,7 @@ namespace BizHawk.Client.EmuHawk { Owner = this, StartPosition = FormStartPosition.Manual, - Location = this.ChildPointToScreen(TasView) + Location = this.ChildPointToScreen(TasView), }; form.ShowDialogOnScreen(); } @@ -1097,7 +1097,7 @@ namespace BizHawk.Client.EmuHawk { TextInputType = InputPrompt.InputType.Unsigned, Message = "Frames per tick:", - InitialValue = TasView.ScrollSpeed.ToString() + InitialValue = TasView.ScrollSpeed.ToString(), }; if (!this.ShowDialogWithTempMute(inputPrompt).IsOk()) return; TasView.ScrollSpeed = int.Parse(inputPrompt.PromptText); @@ -1140,7 +1140,7 @@ namespace BizHawk.Client.EmuHawk Text = $"{column.Text} ({column.Name})", Checked = column.Visible, CheckOnClick = true, - Tag = column.Name + Tag = column.Name, }; menuItem.CheckedChanged += (o, ev) => @@ -1207,7 +1207,7 @@ namespace BizHawk.Client.EmuHawk var item = new ToolStripMenuItem("Show Keys") { CheckOnClick = true, - Checked = false + Checked = false, }; foreach (var menu in keysMenus) @@ -1236,7 +1236,7 @@ namespace BizHawk.Client.EmuHawk var item = new ToolStripMenuItem($"Show Player {i}") { CheckOnClick = true, - Checked = playerMenus[i].DropDownItems.OfType().Any(mi => mi.Checked) + Checked = playerMenus[i].DropDownItems.OfType().Any(static mi => mi.Checked), }; ToolStripMenuItem dummyObject = playerMenus[i]; diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs index 5246704ccb..727d9f7333 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs @@ -352,7 +352,7 @@ namespace BizHawk.Client.EmuHawk type: type, text: mnemonic) { - Rotatable = type is ColumnType.Axis + Rotatable = type is ColumnType.Axis, }); } @@ -1197,7 +1197,7 @@ namespace BizHawk.Client.EmuHawk using var fontDialog = new FontDialog { ShowColor = false, - Font = TasView.Font + Font = TasView.Font, }; if (fontDialog.ShowDialog() != DialogResult.Cancel) { diff --git a/src/BizHawk.Client.EmuHawk/tools/ToolManager.cs b/src/BizHawk.Client.EmuHawk/tools/ToolManager.cs index e4c112499d..37dc08d5a1 100644 --- a/src/BizHawk.Client.EmuHawk/tools/ToolManager.cs +++ b/src/BizHawk.Client.EmuHawk/tools/ToolManager.cs @@ -256,7 +256,7 @@ namespace BizHawk.Client.EmuHawk { Name = "CloseBtn", Text = "&Close", - ShortcutKeyDisplayString = "Alt+F4" + ShortcutKeyDisplayString = "Alt+F4", }; closeMenuItem.Click += (o, e) => { form.Close(); }; diff --git a/src/BizHawk.Client.EmuHawk/tools/TraceLogger.cs b/src/BizHawk.Client.EmuHawk/tools/TraceLogger.cs index 2172e03533..3d7d4fbeae 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TraceLogger.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TraceLogger.cs @@ -165,7 +165,7 @@ namespace BizHawk.Client.EmuHawk _instructions.RemoveRange(0, _instructions.Count - MaxLines); } _instructions.Add(info); - } + }, }; _instructions.Clear(); } @@ -184,7 +184,7 @@ namespace BizHawk.Client.EmuHawk _currentSize += (ulong)data.Length; if (_splitFile) CheckSplitFile(); - } + }, }; } } @@ -338,7 +338,7 @@ namespace BizHawk.Client.EmuHawk StartLocation = this.ChildPointToScreen(TraceView), TextInputType = InputPrompt.InputType.Unsigned, Message = "Max lines to display in the window", - InitialValue = MaxLines.ToString() + InitialValue = MaxLines.ToString(), }; if (!this.ShowDialogWithTempMute(prompt).IsOk()) return; var max = int.Parse(prompt.PromptText); @@ -352,7 +352,7 @@ namespace BizHawk.Client.EmuHawk StartLocation = this.ChildPointToScreen(TraceView), TextInputType = InputPrompt.InputType.Unsigned, Message = "Log file segment size in megabytes\nSetting 0 disables segmentation", - InitialValue = FileSizeCap.ToString() + InitialValue = FileSizeCap.ToString(), }; if (!this.ShowDialogWithTempMute(prompt).IsOk()) return; FileSizeCap = int.Parse(prompt.PromptText); diff --git a/src/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPad.cs b/src/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPad.cs index 91b4269ff4..b69401541d 100644 --- a/src/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPad.cs +++ b/src/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPad.cs @@ -94,7 +94,7 @@ namespace BizHawk.Client.EmuHawk Name = button.Name, Text = icon != null ? null : button.DisplayName, Location = UIHelper.Scale(button.Location), - Image = icon + Image = icon, }; if (icon != null && UIHelper.AutoScaleFactorX > 1F && UIHelper.AutoScaleFactorY > 1F) { @@ -129,7 +129,7 @@ namespace BizHawk.Client.EmuHawk ) { Location = UIHelper.Scale(singleAxis.Location), - Size = UIHelper.Scale(singleAxis.TargetSize) + Size = UIHelper.Scale(singleAxis.TargetSize), }, AnalogSchema analog => new VirtualPadAnalogStick( _inputManager.StickyHoldController, @@ -141,7 +141,7 @@ namespace BizHawk.Client.EmuHawk ) { Location = UIHelper.Scale(analog.Location), - Size = UIHelper.Scale(new Size(180 + 79, 200 + 9)) + Size = UIHelper.Scale(new Size(180 + 79, 200 + 9)), }, TargetedPairSchema targetedPair => new VirtualPadTargetScreen( _inputManager.StickyHoldController, @@ -163,7 +163,7 @@ namespace BizHawk.Client.EmuHawk ) { Location = UIHelper.Scale(discManager.Location), - Size = UIHelper.Scale(discManager.TargetSize) + Size = UIHelper.Scale(discManager.TargetSize), }, _ => throw new InvalidOperationException(), }); diff --git a/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs b/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs index 0ea2d03c3f..99d0e6c0f9 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs @@ -912,7 +912,7 @@ namespace BizHawk.Client.EmuHawk { Text = "Go to Address", StartLocation = this.ChildPointToScreen(WatchListView), - Message = "Enter a hexadecimal value" + Message = "Enter a hexadecimal value", }; while (this.ShowDialogWithTempMute(prompt).IsOk()) @@ -1083,7 +1083,7 @@ namespace BizHawk.Client.EmuHawk { Name = $"{type}ToolStripMenuItem", Text = Watch.DisplayTypeToString(type), - Checked = _settings.Type == type + Checked = _settings.Type == type, }; var type1 = type; item.Click += (o, ev) => DoDisplayTypeClick(type1); diff --git a/src/BizHawk.Client.EmuHawk/tools/Watch/RamWatch.cs b/src/BizHawk.Client.EmuHawk/tools/Watch/RamWatch.cs index ca82a3de3f..e54bf3a62f 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Watch/RamWatch.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Watch/RamWatch.cs @@ -370,7 +370,7 @@ namespace BizHawk.Client.EmuHawk { X = Config.RamWatches.X, Y = Config.RamWatches.Y + (i * 14), - Anchor = Config.RamWatches.Anchor + Anchor = Config.RamWatches.Anchor, }, Color.Black, frozen ? Color.Cyan : Color.White); @@ -454,7 +454,7 @@ namespace BizHawk.Client.EmuHawk var we = new WatchEditor { InitialLocation = this.ChildPointToScreen(WatchListView), - MemoryDomains = MemoryDomains + MemoryDomains = MemoryDomains, }; we.SetWatch(SelectedWatches.First().Domain, SelectedWatches, duplicate ? WatchEditor.Mode.Duplicate : WatchEditor.Mode.Edit); @@ -486,7 +486,7 @@ namespace BizHawk.Client.EmuHawk Text = "Edit Separator", StartLocation = this.ChildPointToScreen(WatchListView), Message = "Separator Text:", - TextInputType = InputPrompt.InputType.Text + TextInputType = InputPrompt.InputType.Text, }; if (this.ShowDialogWithTempMute(inputPrompt).IsOk()) @@ -784,7 +784,7 @@ namespace BizHawk.Client.EmuHawk var we = new WatchEditor { InitialLocation = this.ChildPointToScreen(WatchListView), - MemoryDomains = MemoryDomains + MemoryDomains = MemoryDomains, }; we.SetWatch(CurrentDomain); if (!this.ShowDialogWithTempMute(we).IsOk()) return; @@ -857,7 +857,7 @@ namespace BizHawk.Client.EmuHawk { var poke = new RamPoke(DialogController, SelectedWatches, MainForm.CheatList) { - InitialLocation = this.ChildPointToScreen(WatchListView) + InitialLocation = this.ChildPointToScreen(WatchListView), }; if (this.ShowDialogWithTempMute(poke).IsOk()) diff --git a/src/BizHawk.Common/FFmpegService.cs b/src/BizHawk.Common/FFmpegService.cs index a3977883f7..8557cc150b 100644 --- a/src/BizHawk.Common/FFmpegService.cs +++ b/src/BizHawk.Common/FFmpegService.cs @@ -78,7 +78,7 @@ namespace BizHawk.Common UseShellExecute = false, CreateNoWindow = true, RedirectStandardOutput = true, - RedirectStandardError = true + RedirectStandardError = true, }; Process proc = new Process(); @@ -129,7 +129,7 @@ namespace BizHawk.Common return new RunResults { ExitCode = proc.ExitCode, - Text = resultText + Text = resultText, }; } diff --git a/src/BizHawk.Common/OSTailoredCode.cs b/src/BizHawk.Common/OSTailoredCode.cs index d686e89d4c..f5c4f2e2ea 100644 --- a/src/BizHawk.Common/OSTailoredCode.cs +++ b/src/BizHawk.Common/OSTailoredCode.cs @@ -274,8 +274,8 @@ namespace BizHawk.Common RedirectStandardError = checkStderr, RedirectStandardInput = true, RedirectStandardOutput = checkStdout, - UseShellExecute = false - } + UseShellExecute = false, + }, }; /// POSIX $0 diff --git a/src/BizHawk.Common/TempFileManager.cs b/src/BizHawk.Common/TempFileManager.cs index 6416724138..3338545282 100644 --- a/src/BizHawk.Common/TempFileManager.cs +++ b/src/BizHawk.Common/TempFileManager.cs @@ -54,7 +54,7 @@ namespace BizHawk.Common thread = new Thread(ThreadProc) { IsBackground = true, - Priority = ThreadPriority.Lowest + Priority = ThreadPriority.Lowest, }; thread.Start(); } diff --git a/src/BizHawk.Emulation.Common/DSKIdentifier.cs b/src/BizHawk.Emulation.Common/DSKIdentifier.cs index 514ba55bd0..10eff54865 100644 --- a/src/BizHawk.Emulation.Common/DSKIdentifier.cs +++ b/src/BizHawk.Emulation.Common/DSKIdentifier.cs @@ -245,7 +245,7 @@ namespace BizHawk.Emulation.Common int p = pos; Tracks[i] = new Track { - TrackIdent = Encoding.ASCII.GetString(_data, p, 12) + TrackIdent = Encoding.ASCII.GetString(_data, p, 12), }; p += 16; Tracks[i].TrackNumber = _data[p++]; @@ -267,7 +267,7 @@ namespace BizHawk.Emulation.Common SectorSize = _data[p++], Status1 = _data[p++], Status2 = _data[p++], - ActualDataByteLength = (ushort) (_data[p] | _data[p + 1] << 8) + ActualDataByteLength = (ushort) (_data[p] | _data[p + 1] << 8), }; p += 2; @@ -340,7 +340,7 @@ namespace BizHawk.Emulation.Common SectorSize = _data[p++], Status1 = _data[p++], Status2 = _data[p++], - ActualDataByteLength = (ushort) (_data[p] | _data[p + 1] << 8) + ActualDataByteLength = (ushort) (_data[p] | _data[p + 1] << 8), }; p += 2; diff --git a/src/BizHawk.Emulation.Common/Database/Database.cs b/src/BizHawk.Emulation.Common/Database/Database.cs index b19879e36a..454def499c 100644 --- a/src/BizHawk.Emulation.Common/Database/Database.cs +++ b/src/BizHawk.Emulation.Common/Database/Database.cs @@ -279,7 +279,7 @@ namespace BizHawk.Emulation.Common { Hash = hashSHA1, Status = RomStatus.NotInDatabase, - NotInDatabase = true + NotInDatabase = true, }; #if !BIZHAWKBUILD_GAMEDB_ALWAYS_MISS diff --git a/src/BizHawk.Emulation.Common/Database/GameInfo.cs b/src/BizHawk.Emulation.Common/Database/GameInfo.cs index 4928ad32c4..9ae10b1c8e 100644 --- a/src/BizHawk.Emulation.Common/Database/GameInfo.cs +++ b/src/BizHawk.Emulation.Common/Database/GameInfo.cs @@ -54,7 +54,7 @@ namespace BizHawk.Emulation.Common Region = "", Status = RomStatus.GoodDump, ForcedCore = "", - NotInDatabase = false + NotInDatabase = false, }; internal GameInfo(CompactGameInfo cgi) diff --git a/src/BizHawk.Emulation.Common/TextState.cs b/src/BizHawk.Emulation.Common/TextState.cs index d237414275..17e5feb5bd 100644 --- a/src/BizHawk.Emulation.Common/TextState.cs +++ b/src/BizHawk.Emulation.Common/TextState.cs @@ -113,7 +113,7 @@ namespace BizHawk.Emulation.Common Save = Save, Load = null, EnterSection = EnterSectionSave, - ExitSection = ExitSection + ExitSection = ExitSection, }; } @@ -124,7 +124,7 @@ namespace BizHawk.Emulation.Common Save = null, Load = Load, EnterSection = EnterSectionLoad, - ExitSection = ExitSection + ExitSection = ExitSection, }; } } diff --git a/src/BizHawk.Emulation.DiscSystem/DiscFormats/Blobs/RiffMaster.cs b/src/BizHawk.Emulation.DiscSystem/DiscFormats/Blobs/RiffMaster.cs index 2c2f6ffa16..c8149114a8 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscFormats/Blobs/RiffMaster.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscFormats/Blobs/RiffMaster.cs @@ -257,7 +257,7 @@ namespace BizHawk.Emulation.DiscSystem { tag = subchunkTag, Source = new MemoryStream(System.Text.Encoding.ASCII.GetBytes(s)), - Position = 0 + Position = 0, }; rs.Length = (uint)rs.Source.Length; subchunks.Add(rs); @@ -292,7 +292,7 @@ namespace BizHawk.Emulation.DiscSystem var rc = new RiffContainer { tag = tag, - type = ReadTag(br) + type = ReadTag(br), }; readCounter += 4; @@ -308,7 +308,7 @@ namespace BizHawk.Emulation.DiscSystem tag = tag, Source = br.BaseStream, Position = br.BaseStream.Position, - Length = size + Length = size, }; readCounter += size; br.BaseStream.Position += size; diff --git a/src/BizHawk.Emulation.DiscSystem/DiscFormats/CCD_format.cs b/src/BizHawk.Emulation.DiscSystem/DiscFormats/CCD_format.cs index 30cec6ae69..388fa3525e 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscFormats/CCD_format.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscFormats/CCD_format.cs @@ -193,7 +193,7 @@ namespace BizHawk.Emulation.DiscSystem { currSection = new() { - Name = line.Trim('[', ']').ToUpperInvariant() + Name = line.Trim('[', ']').ToUpperInvariant(), }; sections.Add(currSection); } @@ -338,7 +338,7 @@ namespace BizHawk.Emulation.DiscSystem { CcdPath = path, ImgPath = Path.ChangeExtension(path, ".img"), - SubPath = Path.ChangeExtension(path, ".sub") + SubPath = Path.ChangeExtension(path, ".sub"), }; try { @@ -606,7 +606,7 @@ namespace BizHawk.Emulation.DiscSystem var ss_gap = new CUE.SS_Gap() { Policy = IN_DiscMountPolicy, - TrackType = pregapTrackType + TrackType = pregapTrackType, }; disc._Sectors.Add(ss_gap); diff --git a/src/BizHawk.Emulation.DiscSystem/DiscFormats/CDI_format.cs b/src/BizHawk.Emulation.DiscSystem/DiscFormats/CDI_format.cs index bd4c97a49f..e4d5cbc2c9 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscFormats/CDI_format.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscFormats/CDI_format.cs @@ -419,7 +419,7 @@ namespace BizHawk.Emulation.DiscSystem { var ret = new LoadResults { - CdiPath = path + CdiPath = path, }; try { @@ -570,7 +570,7 @@ namespace BizHawk.Emulation.DiscSystem disc._Sectors.Add(new SS_Leadout { SessionNumber = session.Number, - Policy = IN_DiscMountPolicy + Policy = IN_DiscMountPolicy, }); } diff --git a/src/BizHawk.Emulation.DiscSystem/DiscFormats/CHD_format.cs b/src/BizHawk.Emulation.DiscSystem/DiscFormats/CHD_format.cs index 4bd3d71e20..12322ed2c9 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscFormats/CHD_format.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscFormats/CHD_format.cs @@ -303,7 +303,7 @@ namespace BizHawk.Emulation.DiscSystem var track = metadata[(4 + i * 24)..]; var cdMetadata = new CHDCdMetadata { - Track = (uint)i + 1 + Track = 1U + (uint) i, }; if (bigEndian) { @@ -496,7 +496,7 @@ namespace BizHawk.Emulation.DiscSystem { var ret = new LoadResults { - ChdPath = path + ChdPath = path, }; try { @@ -747,7 +747,7 @@ namespace BizHawk.Emulation.DiscSystem var synth = new SS_Gap { TrackType = ToCueTrackType(cdMetadata.TrackType, cdMetadata.IsCDI), - Policy = IN_DiscMountPolicy + Policy = IN_DiscMountPolicy, }; const byte kADR = 1; var control = cdMetadata.TrackType != LibChd.chd_track_type.CD_TRACK_AUDIO diff --git a/src/BizHawk.Emulation.DiscSystem/DiscFormats/CUE/CUE_Load.cs b/src/BizHawk.Emulation.DiscSystem/DiscFormats/CUE/CUE_Load.cs index 6b076de2f1..568f35458b 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscFormats/CUE/CUE_Load.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscFormats/CUE/CUE_Load.cs @@ -226,7 +226,7 @@ namespace BizHawk.Emulation.DiscSystem.CUE CloseSession(); CurrentSession = new() { - Number = cct.Session + Number = cct.Session, }; } @@ -396,7 +396,7 @@ namespace BizHawk.Emulation.DiscSystem.CUE { var ss = new SS_Gap { - TrackType = cct.TrackType // TODO - old track type in some < -150 cases? + TrackType = cct.TrackType, // TODO - old track type in some < -150 cases? }; //-subq- diff --git a/src/BizHawk.Emulation.DiscSystem/DiscFormats/M3U_file.cs b/src/BizHawk.Emulation.DiscSystem/DiscFormats/M3U_file.cs index c9cb887183..448740c98a 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscFormats/M3U_file.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscFormats/M3U_file.cs @@ -54,7 +54,7 @@ namespace BizHawk.Emulation.DiscSystem { Path = line, Runtime = runtime, - Title = title + Title = title, }; Entries.Add(e); runtime = -1; diff --git a/src/BizHawk.Emulation.DiscSystem/DiscFormats/MDS_Format.cs b/src/BizHawk.Emulation.DiscSystem/DiscFormats/MDS_Format.cs index aef8676244..a77d1e7bfc 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscFormats/MDS_Format.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscFormats/MDS_Format.cs @@ -354,7 +354,7 @@ namespace BizHawk.Emulation.DiscSystem NonTrackBlocks = sessionHeader[11], FirstTrack = bc.ToInt16(sessionHeader.Skip(12).Take(2).ToArray()), LastTrack = bc.ToInt16(sessionHeader.Skip(14).Take(2).ToArray()), - TrackOffset = bc.ToInt32(sessionHeader.Skip(20).Take(4).ToArray()) + TrackOffset = bc.ToInt32(sessionHeader.Skip(20).Take(4).ToArray()), }; //mdsf.Sessions.Add(session); @@ -437,7 +437,7 @@ namespace BizHawk.Emulation.DiscSystem var f = new AFooter { FilenameOffset = bc.ToInt32(foot.Take(4).ToArray()), - WideChar = bc.ToInt32(foot.Skip(4).Take(4).ToArray()) + WideChar = bc.ToInt32(foot.Skip(4).Take(4).ToArray()), }; track.FooterBlocks.Add(f); track.FooterBlocks = track.FooterBlocks.Distinct().ToList(); @@ -570,7 +570,7 @@ namespace BizHawk.Emulation.DiscSystem SectorSize = track.SectorSize, Session = se.SessionSequence, TrackOffset = Convert.ToInt64(track.StartOffset), - Zero = track.Zero + Zero = track.Zero, }; } @@ -788,7 +788,7 @@ namespace BizHawk.Emulation.DiscSystem disc._Sectors.Add(new CUE.SS_Gap() { Policy = IN_DiscMountPolicy, - TrackType = pregapTrackType + TrackType = pregapTrackType, }); } @@ -850,7 +850,7 @@ namespace BizHawk.Emulation.DiscSystem var ss_gap = new CUE.SS_Gap() { Policy = IN_DiscMountPolicy, - TrackType = pregapTrackType + TrackType = pregapTrackType, }; disc._Sectors.Add(ss_gap); @@ -937,7 +937,7 @@ namespace BizHawk.Emulation.DiscSystem q_tno = BCD2.FromDecimal(track.Point), q_index = ino, AP_Timestamp = disc._Sectors.Count, - Timestamp = relMSF - Convert.ToInt32(track.ExtraBlock.Pregap) + Timestamp = relMSF - Convert.ToInt32(track.ExtraBlock.Pregap), }; sBase.sq = q; @@ -954,7 +954,7 @@ namespace BizHawk.Emulation.DiscSystem disc._Sectors.Add(new SS_Leadout { SessionNumber = session.SessionSequence, - Policy = IN_DiscMountPolicy + Policy = IN_DiscMountPolicy, }); } } diff --git a/src/BizHawk.Emulation.DiscSystem/DiscFormats/NRG_format.cs b/src/BizHawk.Emulation.DiscSystem/DiscFormats/NRG_format.cs index 45cc2059c8..d5d22e77ce 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscFormats/NRG_format.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscFormats/NRG_format.cs @@ -431,7 +431,7 @@ namespace BizHawk.Emulation.DiscSystem { Isrc = Encoding.ASCII.GetString(chunkData.Slice(i, 12)).TrimEnd('\0'), SectorSize = BinaryPrimitives.ReadUInt16BigEndian(chunkData.Slice(i + 12, sizeof(ushort))), - Mode = chunkData[i + 14] + Mode = chunkData[i + 14], }; if (v2) @@ -889,7 +889,7 @@ namespace BizHawk.Emulation.DiscSystem { var ret = new LoadResults { - NrgPath = path + NrgPath = path, }; try { @@ -1080,7 +1080,7 @@ namespace BizHawk.Emulation.DiscSystem disc._Sectors.Add(new SS_Leadout { SessionNumber = session.Number, - Policy = IN_DiscMountPolicy + Policy = IN_DiscMountPolicy, }); } diff --git a/src/BizHawk.Emulation.DiscSystem/DiscHasher.cs b/src/BizHawk.Emulation.DiscSystem/DiscHasher.cs index e627f88878..8e35e2e8b4 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscHasher.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscHasher.cs @@ -43,7 +43,7 @@ namespace BizHawk.Emulation.DiscSystem var dsr = new DiscSectorReader(disc) { - Policy = { DeterministicClearBuffer = false } // live dangerously + Policy = { DeterministicClearBuffer = false }, // live dangerously }; //hash the TOC @@ -81,7 +81,7 @@ namespace BizHawk.Emulation.DiscSystem var dsr = new DiscSectorReader(disc) { - Policy = { DeterministicClearBuffer = false } // live dangerously + Policy = { DeterministicClearBuffer = false }, // live dangerously }; @@ -131,7 +131,7 @@ namespace BizHawk.Emulation.DiscSystem var dsr = new DiscSectorReader(disc) { - Policy = { DeterministicClearBuffer = false } // let's make this a little faster + Policy = { DeterministicClearBuffer = false }, // let's make this a little faster }; static string? HashJaguar(DiscTrack bootTrack, DiscSectorReader dsr, bool commonHomebrewHash) diff --git a/src/BizHawk.Emulation.DiscSystem/DiscIdentifier.cs b/src/BizHawk.Emulation.DiscSystem/DiscIdentifier.cs index e2a5128d17..144d8b9d71 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscIdentifier.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscIdentifier.cs @@ -124,7 +124,7 @@ namespace BizHawk.Emulation.DiscSystem // the first check for mode 0 should be sufficient for blocking attempts to read audio sectors // but github #928 had a data track with an audio sector // so let's be careful here.. we're just trying to ID things, not be robust - Policy = {ThrowExceptions2048 = false} + Policy = { ThrowExceptions2048 = false }, }; } diff --git a/src/BizHawk.Emulation.DiscSystem/DiscMountJob.MednaDisc.cs b/src/BizHawk.Emulation.DiscSystem/DiscMountJob.MednaDisc.cs index 55e0d1099f..b1f9f5e6de 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscMountJob.MednaDisc.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscMountJob.MednaDisc.cs @@ -72,7 +72,7 @@ ap_min = BCD2.FromDecimal(m_ts.MIN), ap_sec = BCD2.FromDecimal(m_ts.SEC), ap_frame = BCD2.FromDecimal(m_ts.FRAC), - q_crc = 0 //meaningless + q_crc = 0, //meaningless }; //a special fixup: mednafen's entry 100 is the lead-out track, so change it into the A2 raw toc entry diff --git a/src/BizHawk.Emulation.DiscSystem/DiscMountJob.cs b/src/BizHawk.Emulation.DiscSystem/DiscMountJob.cs index fcf38d2d24..e6862bbadb 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscMountJob.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscMountJob.cs @@ -100,7 +100,7 @@ namespace BizHawk.Emulation.DiscSystem var ss_leadout = new SS_Leadout { SessionNumber = OUT_Disc.Sessions.Count - 1, - Policy = IN_DiscMountPolicy + Policy = IN_DiscMountPolicy, }; bool Condition(int lba) => lba >= OUT_Disc.Sessions[OUT_Disc.Sessions.Count - 1].LeadoutLBA; new ConditionalSectorSynthProvider().Install(OUT_Disc, Condition, ss_leadout); diff --git a/src/BizHawk.Emulation.DiscSystem/Internal/Jobs/Synthesize_DiscTracks_From_DiscTOC_Job.cs b/src/BizHawk.Emulation.DiscSystem/Internal/Jobs/Synthesize_DiscTracks_From_DiscTOC_Job.cs index 05744a19f8..f4c0118e0d 100644 --- a/src/BizHawk.Emulation.DiscSystem/Internal/Jobs/Synthesize_DiscTracks_From_DiscTOC_Job.cs +++ b/src/BizHawk.Emulation.DiscSystem/Internal/Jobs/Synthesize_DiscTracks_From_DiscTOC_Job.cs @@ -27,7 +27,7 @@ namespace BizHawk.Emulation.DiscSystem { Number = 0, Control = EControlQ.None, //we'll set this later - LBA = -new Timestamp(99,99,99).Sector //obvious garbage + LBA = -new Timestamp(99,99,99).Sector, //obvious garbage }); for (var i = TOCRaw.FirstRecordedTrackNumber; i <= TOCRaw.LastRecordedTrackNumber; i++) @@ -37,7 +37,7 @@ namespace BizHawk.Emulation.DiscSystem { Number = i, Control = item.Control, - LBA = item.LBA + LBA = item.LBA, }; Tracks.Add(track); @@ -63,7 +63,7 @@ namespace BizHawk.Emulation.DiscSystem //kind of a guess, but not completely Control = Tracks[Tracks.Count - 1].Control, Mode = Tracks[Tracks.Count - 1].Mode, - LBA = TOCRaw.LeadoutLBA + LBA = TOCRaw.LeadoutLBA, }); //link track list diff --git a/src/BizHawk.Emulation.DiscSystem/Internal/SectorSynth.cs b/src/BizHawk.Emulation.DiscSystem/Internal/SectorSynth.cs index 05c295d923..9528ad1887 100644 --- a/src/BizHawk.Emulation.DiscSystem/Internal/SectorSynth.cs +++ b/src/BizHawk.Emulation.DiscSystem/Internal/SectorSynth.cs @@ -264,7 +264,7 @@ namespace BizHawk.Emulation.DiscSystem Policy = Policy, sq = sq, TrackType = TrackType, - Pause = true //? + Pause = true, // ? }; ss_gap.Synth(job); diff --git a/src/BizHawk.Tests/Client.Common/Movie/ZwinderStateManagerTests.cs b/src/BizHawk.Tests/Client.Common/Movie/ZwinderStateManagerTests.cs index 2730b89648..024c7fd155 100644 --- a/src/BizHawk.Tests/Client.Common/Movie/ZwinderStateManagerTests.cs +++ b/src/BizHawk.Tests/Client.Common/Movie/ZwinderStateManagerTests.cs @@ -45,7 +45,7 @@ namespace BizHawk.Tests.Client.Common.Movie RecentBufferSize = 1, RecentTargetFrameLength = 100000, - AncientStateInterval = 50000 + AncientStateInterval = 50000, }, f => false); var ms = new MemoryStream(); @@ -68,7 +68,7 @@ namespace BizHawk.Tests.Client.Common.Movie RecentBufferSize = 16, RecentTargetFrameLength = 100000, - AncientStateInterval = 50000 + AncientStateInterval = 50000, }, f => false); zw.SaveStateHistory(new BinaryWriter(ms)); var buff = ms.ToArray(); @@ -88,11 +88,11 @@ namespace BizHawk.Tests.Client.Common.Movie using var zb = new ZwinderBuffer(new RewindConfig { BufferSize = 1, - TargetFrameLength = 1 + TargetFrameLength = 1, }); var ss = new StateSource { - PaddingData = new byte[10] + PaddingData = new byte[10], }; var stateCount = 0; for (int i = 0; i < 1000000; i++) @@ -109,7 +109,7 @@ namespace BizHawk.Tests.Client.Common.Movie RewindConfig config = new RewindConfig { BufferSize = 1, - TargetFrameLength = 10 + TargetFrameLength = 10, }; var buff = new ZwinderBuffer(config); var ss = new StateSource { PaddingData = new byte[500] }; @@ -151,7 +151,7 @@ namespace BizHawk.Tests.Client.Common.Movie RecentBufferSize = 1, RecentTargetFrameLength = 100000, - AncientStateInterval = 50000 + AncientStateInterval = 50000, }, f => false); { var ms = new MemoryStream(); @@ -392,7 +392,7 @@ namespace BizHawk.Tests.Client.Common.Movie CurrentTargetFrameLength = 1000, RecentBufferSize = 2, RecentTargetFrameLength = 1000, - AncientStateInterval = 100 + AncientStateInterval = 100, }, f => false); for (int i = 0; i < 1000; i += 200) @@ -450,12 +450,12 @@ namespace BizHawk.Tests.Client.Common.Movie { var ss = new StateSource { - PaddingData = new byte[400 * 1000] + PaddingData = new byte[400 * 1000], }; using var zw = new ZwinderBuffer(new RewindConfig { BufferSize = 1, - TargetFrameLength = 1 + TargetFrameLength = 1, }); // Need to get data in the zwinderbuffer so that the last state, and the last state in particular, wraps around @@ -475,7 +475,7 @@ namespace BizHawk.Tests.Client.Common.Movie using var zw = new ZwinderBuffer(new RewindConfig { BufferSize = 1, - TargetFrameLength = 1 + TargetFrameLength = 1, }); zw.Capture(0, s => { @@ -497,7 +497,7 @@ namespace BizHawk.Tests.Client.Common.Movie using var zw = new ZwinderBuffer(new RewindConfig { BufferSize = 1, - TargetFrameLength = 1 + TargetFrameLength = 1, }); zw.Capture(0, s => { @@ -522,7 +522,7 @@ namespace BizHawk.Tests.Client.Common.Movie using var zw = new ZwinderBuffer(new RewindConfig { BufferSize = 1, - TargetFrameLength = 1 + TargetFrameLength = 1, }); zw.Capture(0, s => { @@ -560,7 +560,7 @@ namespace BizHawk.Tests.Client.Common.Movie using var zw = new ZwinderBuffer(new RewindConfig { BufferSize = 1, - TargetFrameLength = 1 + TargetFrameLength = 1, }); var buff = new byte[40000];