diff --git a/BizHawk.Client.EmuHawk/tools/GB/DualGBXMLCreator.cs b/BizHawk.Client.EmuHawk/tools/GB/DualGBXMLCreator.cs index 849dd947f4..e8296ec453 100644 --- a/BizHawk.Client.EmuHawk/tools/GB/DualGBXMLCreator.cs +++ b/BizHawk.Client.EmuHawk/tools/GB/DualGBXMLCreator.cs @@ -152,6 +152,16 @@ namespace BizHawk.Client.EmuHawk { if (Recalculate()) { + var fileInfo = new FileInfo(textBoxOutputDir.Text); + + if (fileInfo.Exists) + { + var result = MessageBox.Show(this, "File already exists, overwrite?", "File exists", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); + if (result != DialogResult.OK) + { + return; + } + } using (var sw = new StreamWriter(textBoxOutputDir.Text)) { sw.Write(textBoxXML.Text);