Add trailing commas to object initialisers and `with` expressions
This commit is contained in:
parent
613ff73a5a
commit
ba12785fe2
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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<Control>())
|
||||
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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"),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ namespace BizHawk.Bizware.Graphics
|
|||
Height = Height,
|
||||
Width = Width,
|
||||
Stride = Width * 4,
|
||||
Scan0 = CurrLockHandle.AddrOfPinnedObject()
|
||||
Scan0 = CurrLockHandle.AddrOfPinnedObject(),
|
||||
};
|
||||
|
||||
return CurrLock;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -476,7 +476,7 @@ namespace BizHawk.Client.Common
|
|||
Simulate = displayNothing,
|
||||
ChainOutsize = GetGraphicsControlSize(),
|
||||
IncludeOSD = true,
|
||||
IncludeUserFilters = true
|
||||
IncludeUserFilters = true,
|
||||
};
|
||||
|
||||
UpdateSourceInternal(job);
|
||||
|
|
|
@ -139,7 +139,7 @@ namespace BizHawk.Client.Common.Filters
|
|||
{
|
||||
SurfaceDirection = direction,
|
||||
Channel = channel,
|
||||
SurfaceDisposition = disposition
|
||||
SurfaceDisposition = disposition,
|
||||
};
|
||||
|
||||
_ioSurfaceInfos.Add(iosi);
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(),
|
||||
};
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace BizHawk.Client.Common
|
|||
{
|
||||
_outputProvider = new SoundOutputProvider(getCoreVsyncRateCallback, standaloneMode: true)
|
||||
{
|
||||
BaseSoundProvider = baseProvider
|
||||
BaseSoundProvider = baseProvider,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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 = "";
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace BizHawk.Client.Common
|
|||
var controllerSettings = new NESControlSettings
|
||||
{
|
||||
NesLeftPort = nameof(UnpluggedNES),
|
||||
NesRightPort = nameof(UnpluggedNES)
|
||||
NesRightPort = nameof(UnpluggedNES),
|
||||
};
|
||||
bool isFourScore = false;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -139,8 +139,8 @@ namespace BizHawk.Client.Common
|
|||
OctoshockDll.ePeripheralType.None,
|
||||
OctoshockDll.ePeripheralType.None,
|
||||
OctoshockDll.ePeripheralType.None,
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
movie.SyncSettingsJson = ConfigService.SaveWithType(syncSettings);
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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(),
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace BizHawk.Client.Common
|
|||
{
|
||||
return new SeparatorWatch
|
||||
{
|
||||
Notes = description
|
||||
Notes = description,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
return new GifToken(0, 0)
|
||||
{
|
||||
Frameskip = config.GifWriterFrameskip,
|
||||
FrameDelay = config.GifWriterDelay
|
||||
FrameDelay = config.GifWriterDelay,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -70,7 +70,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
_mFrameInfos.Add(new FrameInfo
|
||||
{
|
||||
PngPath = png,
|
||||
WavPath = wav
|
||||
WavPath = wav,
|
||||
});
|
||||
|
||||
frame++;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -232,7 +232,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
return new SimpleMatcher
|
||||
{
|
||||
Keys = searchKey.ToLowerInvariant().Split(Array.Empty<char>(), StringSplitOptions.RemoveEmptyEntries) // splits on all whitespace chars
|
||||
Keys = searchKey.ToLowerInvariant().Split(Array.Empty<char>(), StringSplitOptions.RemoveEmptyEntries), // splits on all whitespace chars
|
||||
};
|
||||
}
|
||||
else
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
CoreInfoPanel.Controls.Add(new BizBoxInfoControl(core.CoreAttr)
|
||||
{
|
||||
Dock = DockStyle.Top
|
||||
Dock = DockStyle.Top,
|
||||
});
|
||||
}
|
||||
CoreInfoPanel.ResumeLayout();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
pszDisplayName = pszDisplayName,
|
||||
lpszTitle = Description,
|
||||
ulFlags = browseOptions,
|
||||
lpfn = Callback
|
||||
lpfn = Callback,
|
||||
};
|
||||
|
||||
pidlRet = SHBrowseForFolderW(ref bi);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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) =>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
Console.SetOut(new StreamWriter(Console.OpenStandardOutput())
|
||||
{
|
||||
AutoFlush = true
|
||||
AutoFlush = true,
|
||||
});
|
||||
_logWriter.Close();
|
||||
_logWriter = null;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -199,8 +199,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
Policy =
|
||||
{
|
||||
UserData2048Mode = DiscSectorReaderPolicy.EUserData2048Mode.InspectSector_AssumeForm1,
|
||||
ThrowExceptions2048 = false
|
||||
}
|
||||
ThrowExceptions2048 = false,
|
||||
},
|
||||
};
|
||||
|
||||
_buf2352 = new byte[2352];
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -114,7 +114,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
flpBindReadout,
|
||||
new SingleRowFLP { Controls = { flpButtons, flpPrescale } },
|
||||
}
|
||||
},
|
||||
});
|
||||
ResumeLayout();
|
||||
}
|
||||
|
|
|
@ -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++;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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) =>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1035,7 +1035,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
AllowFullOpen = true,
|
||||
AnyColor = true,
|
||||
FullOpen = true,
|
||||
Color = Spriteback
|
||||
Color = Spriteback,
|
||||
};
|
||||
|
||||
if (this.ShowDialogWithTempMute(dlg).IsOk())
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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}");
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue