Record movie dialog - if file already exists, confirm overwrite

This commit is contained in:
adelikat 2012-03-30 00:32:45 +00:00
parent 37d58f1a4f
commit 91f5733662
1 changed files with 9 additions and 0 deletions

View File

@ -50,6 +50,15 @@ namespace BizHawk.MultiClient
if (path.Length > 0)
{
FileInfo test = new FileInfo(path);
if (test.Exists)
{
var result = MessageBox.Show(path + " already exists, overwrite?", "Confirm overwrite", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
if (result == System.Windows.Forms.DialogResult.Cancel)
return;
}
MovieToRecord = new Movie(path, MOVIEMODE.RECORD);
//Header