remove trailing comma in various places in Emuhawk probject

This commit is contained in:
adelikat 2020-03-21 16:04:08 -05:00
parent c1e2f6afe5
commit 6a25679ae3
21 changed files with 28 additions and 28 deletions

View File

@ -70,7 +70,7 @@ namespace BizHawk.Client.EmuHawk
new FormatPreset("FLV", "AVC video and AAC audio in a Flash Video container.",
"-c:a aac -c:v libx264 -f flv", false, "flv"),
new FormatPreset("[Custom]", "Write your own ffmpeg command. For advanced users only.",
"-c:a foo -c:v bar -f baz", true, "foobar"),
"-c:a foo -c:v bar -f baz", true, "foobar")
};
}

View File

@ -192,7 +192,7 @@ namespace BizHawk.Client.EmuHawk
0x00000000, 0x04C11DB7, 0x09823B6E, 0x0D4326D9,
0x130476DC, 0x17C56B6B, 0x1A864DB2, 0x1E475005,
0x2608EDB8, 0x22C9F00F, 0x2F8AD6D6, 0x2B4BCB61,
0x350C9B64, 0x31CD86D3, 0x3C8EA00A, 0x384FBDBD,
0x350C9B64, 0x31CD86D3, 0x3C8EA00A, 0x384FBDBD
};
/// <summary>

View File

@ -128,7 +128,7 @@ namespace BizHawk.Client.EmuHawk
{
var values = new Dictionary<string, string>
{
["payload"] = payload,
["payload"] = payload
};
FormUrlEncodedContent content = new FormUrlEncodedContent(values);
return Post(PostUrl, content).Result;

View File

@ -524,7 +524,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);

View File

@ -946,7 +946,7 @@ namespace BizHawk.Client.EmuHawk
{
Name = "RotateMenuItem",
Text = "Rotate",
ShortcutKeyDisplayString = RotateHotkeyStr,
ShortcutKeyDisplayString = RotateHotkeyStr
};
rotate.Click += (o, ev) => { HorizontalOrientation ^= true; };

View File

@ -431,7 +431,7 @@ namespace BizHawk.Client.EmuHawk
VideoProvider = videoProvider,
Simulate = displayNothing,
ChainOutsize = GraphicsControl.Size,
IncludeOSD = true,
IncludeOSD = true
};
UpdateSourceInternal(job);
}
@ -651,7 +651,7 @@ namespace BizHawk.Client.EmuHawk
{
VideoProvider = fvp,
Simulate = true,
ChainOutsize = chainOutsize,
ChainOutsize = chainOutsize
};
var filterProgram = UpdateSourceInternal(job);

View File

@ -434,7 +434,7 @@ namespace BizHawk.Client.EmuHawk
VertexDeclaration = new VertexDeclaration(Dev, ves),
VertexShader = vertexShader.Opaque as ShaderWrapper,
FragmentShader = fragmentShader.Opaque as ShaderWrapper,
VertexStride = stride,
VertexStride = stride
};
//scan uniforms from constant tables

View File

@ -111,7 +111,7 @@ namespace BizHawk.Client.EmuHawk
//
// Summary:
// The ALT modifier key.
Alt = 262144,
Alt = 262144
}
public static Input Instance { get; private set; }

View File

@ -131,7 +131,7 @@ namespace BizHawk.Client.EmuHawk
{
Location = new Point(x + _inputSize + _labelPadding, y + UIHelper.ScaleY(3)),
Size = new Size(UIHelper.ScaleX(100), UIHelper.ScaleY(15)),
Text = _buttons[i].Replace('_', ' ').Trim(),
Text = _buttons[i].Replace('_', ' ').Trim()
};
////Tooltip.SetToolTip(label, null); //??? not supported yet

View File

@ -59,7 +59,7 @@ namespace BizHawk.Client.EmuHawk
["AmstradCPC"] = "Amstrad CPC",
["ChannelF"] = "Channel F",
["Vectrex"] = "Vectrex",
["MSX"] = "MSX",
["MSX"] = "MSX"
};
public string TargetSystem { get; set; }

View File

@ -38,7 +38,7 @@ namespace BizHawk.Client.EmuHawk
"%exe%",
"%rom%",
".\\",
"..\\",
"..\\"
};
public PathConfig(MainForm mainForm, Config config)
@ -134,7 +134,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
@ -144,7 +144,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;
@ -191,7 +191,7 @@ namespace BizHawk.Client.EmuHawk
Location = new Point(widgetOffset + buttonWidth + padding + infoPadding, 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);

View File

@ -121,7 +121,7 @@ namespace BizHawk.Client.EmuHawk
System.Drawing.Color.FromArgb(0x00, 0xFF, 0x00),
System.Drawing.Color.FromArgb(0x00, 0xFF, 0xFF),
System.Drawing.Color.FromArgb(0xFF, 0xFF, 0x00),
System.Drawing.Color.FromArgb(0xFF, 0xFF, 0xFF),
System.Drawing.Color.FromArgb(0xFF, 0xFF, 0xFF)
};
cd.CustomColors = new[]
@ -141,7 +141,7 @@ namespace BizHawk.Client.EmuHawk
System.Drawing.ColorTranslator.ToOle(colors[12]),
System.Drawing.ColorTranslator.ToOle(colors[13]),
System.Drawing.ColorTranslator.ToOle(colors[14]),
System.Drawing.ColorTranslator.ToOle(colors[15]),
System.Drawing.ColorTranslator.ToOle(colors[15])
};
cd.Color = c;

View File

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

View File

@ -1312,7 +1312,7 @@ namespace BizHawk.Client.EmuHawk
new FilesystemFilter("Binary", new[] { "bin" }),
new FilesystemFilter("Save Files", new[] { "sav" })
).ToString(),
RestoreDirectory = true,
RestoreDirectory = true
};
var result = sfd.ShowHawkDialog();

View File

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

View File

@ -260,7 +260,7 @@ namespace BizHawk.Client.EmuHawk
Filter = Path.GetFileName(path),
NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite
| NotifyFilters.FileName | NotifyFilters.DirectoryName,
EnableRaisingEvents = true,
EnableRaisingEvents = true
};
// TODO, Deleted and Renamed events

View File

@ -179,7 +179,7 @@ namespace BizHawk.Client.EmuHawk
private static readonly byte[] EmptyWav = {
0x52, 0x49, 0x46, 0x46, 0x24, 0x04, 0x00, 0x00, 0x57, 0x41, 0x56, 0x45, 0x66, 0x6D, 0x74, 0x20,
0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0xE0, 0x2E, 0x00, 0x00, 0xC0, 0x5D, 0x00, 0x00,
0x02, 0x00, 0x10, 0x00, 0x64, 0x61, 0x74, 0x61, 0x00, 0x04, 0x00, 0x00,
0x02, 0x00, 0x10, 0x00, 0x64, 0x61, 0x74, 0x61, 0x00, 0x04, 0x00, 0x00
};

View File

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

View File

@ -71,7 +71,7 @@ namespace BizHawk.Client.EmuHawk
Name = UserTextColumnName,
Text = "UserText",
UnscaledWidth = 90
},
}
});
}

View File

@ -55,7 +55,7 @@ namespace BizHawk.Client.EmuHawk
: $"{Global.Game.FilesystemSafeName()}.{fileExt}",
InitialDirectory = path,
Filter = new FilesystemFilterSet(new FilesystemFilter(fileType, new[] { fileExt })).ToString(),
RestoreDirectory = true,
RestoreDirectory = true
};
var result = sfd.ShowHawkDialog();

View File

@ -946,7 +946,7 @@ namespace BizHawk.Client.EmuHawk
new RollColumn { Text = "Value", Name = WatchList.Value, Visible = true, UnscaledWidth = 59, Type = ColumnType.Text },
new RollColumn { Text = "Prev", Name = WatchList.Prev, Visible = true, UnscaledWidth = 59, Type = ColumnType.Text },
new RollColumn { Text = "Changes", Name = WatchList.ChangesCol, Visible = true, UnscaledWidth = 60, Type = ColumnType.Text },
new RollColumn { Text = "Diff", Name = WatchList.Diff, Visible = false, UnscaledWidth = 59, Type = ColumnType.Text },
new RollColumn { Text = "Diff", Name = WatchList.Diff, Visible = false, UnscaledWidth = 59, Type = ColumnType.Text }
};
PreviewMode = true;
@ -1086,7 +1086,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);