MultiDiskBundler - don't autofill stuff if the current "rom" is a .xml file

This commit is contained in:
adelikat 2015-05-17 20:37:19 +00:00
parent a04a80bfce
commit 7af274c1cc
1 changed files with 5 additions and 8 deletions

View File

@ -26,7 +26,10 @@ namespace BizHawk.Client.EmuHawk
private void MultiGameCreator_Load(object sender, EventArgs e)
{
if (!Global.Game.IsNullInstance)
AddButton_Click(null, null);
AddButton_Click(null, null);
if (!Global.Game.IsNullInstance && !GlobalWin.MainForm.CurrentlyOpenRom.EndsWith(".xml"))
{
string currentRom = GlobalWin.MainForm.CurrentlyOpenRom;
if (GlobalWin.MainForm.CurrentlyOpenRom.Contains("|"))
@ -47,14 +50,8 @@ namespace BizHawk.Client.EmuHawk
{
SystemDropDown.SelectedItem = Global.Emulator.SystemId;
}
}
AddButton_Click(null, null);
AddButton_Click(null, null);
if (!Global.Game.IsNullInstance)
{
FileSelectors.First().SetName(GlobalWin.MainForm.CurrentlyOpenRom);
FileSelectors.First().SetName(GlobalWin.MainForm.CurrentlyOpenRom);
}
}