VideoWriterChooserForm: save config

This commit is contained in:
goyuken 2012-06-17 15:09:53 +00:00
parent 766737ca63
commit a4cbce89f0
2 changed files with 8 additions and 0 deletions

View File

@ -288,6 +288,7 @@ namespace BizHawk.MultiClient
public Color HexHighlightFreezeColor = Color.Violet;
// Video dumping settings
public string VideoWriter = "";
public int JMDCompression = 3;
public int JMDThreads = 3;
public string FFmpegFormat = "";

View File

@ -34,12 +34,19 @@ namespace BizHawk.MultiClient
dlg.listBox1.Items.AddRange(list);
int i = dlg.listBox1.FindStringExact(Global.Config.VideoWriter);
if (i != ListBox.NoMatches)
dlg.listBox1.SelectedIndex = i;
DialogResult result = dlg.ShowDialog(owner);
IVideoWriter ret;
if (result == DialogResult.OK && dlg.listBox1.SelectedIndex != -1)
{
ret = (IVideoWriter)dlg.listBox1.SelectedItem;
Global.Config.VideoWriter = ret.ToString();
}
else
ret = null;