From a4cbce89f0e559ff96b9b3f6aceb0724746b11b6 Mon Sep 17 00:00:00 2001 From: goyuken Date: Sun, 17 Jun 2012 15:09:53 +0000 Subject: [PATCH] VideoWriterChooserForm: save config --- BizHawk.MultiClient/Config.cs | 1 + BizHawk.MultiClient/VideoWriterChooserForm.cs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/BizHawk.MultiClient/Config.cs b/BizHawk.MultiClient/Config.cs index 3801949e3a..3a4252228b 100644 --- a/BizHawk.MultiClient/Config.cs +++ b/BizHawk.MultiClient/Config.cs @@ -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 = ""; diff --git a/BizHawk.MultiClient/VideoWriterChooserForm.cs b/BizHawk.MultiClient/VideoWriterChooserForm.cs index eaea206a3c..73bf1f1ada 100644 --- a/BizHawk.MultiClient/VideoWriterChooserForm.cs +++ b/BizHawk.MultiClient/VideoWriterChooserForm.cs @@ -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;