Resolve Error 472 (Don't allow user to add more then 2 GB/GBC ROMs into the Bundler)
This commit is contained in:
parent
0225c89fbb
commit
55fb72b6dc
|
@ -138,13 +138,13 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
FileSelectorPanel.Controls.Add(groupBox);
|
FileSelectorPanel.Controls.Add(groupBox);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnRemove_Click(object sender, EventArgs e)
|
private void btnRemove_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//ToDo:
|
//ToDo:
|
||||||
//Make this better?
|
//Make this better?
|
||||||
//We need to have i at 1 and not zero because Controls Count doesn't start at zero (sort of)
|
//We need to have i at 1 and not zero because Controls Count doesn't start at zero (sort of)
|
||||||
Int32 i = 1;
|
Int32 i = 1;
|
||||||
|
|
||||||
//For Each Control box we have, loop
|
//For Each Control box we have, loop
|
||||||
foreach (Control ctrl in FileSelectorPanel.Controls)
|
foreach (Control ctrl in FileSelectorPanel.Controls)
|
||||||
{
|
{
|
||||||
|
@ -157,12 +157,12 @@ namespace BizHawk.Client.EmuHawk
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FileSelector_NameChanged(object sender, EventArgs e)
|
private void FileSelector_NameChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Recalculate();
|
Recalculate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private IEnumerable<MultiDiskFileSelector> FileSelectors
|
private IEnumerable<MultiDiskFileSelector> FileSelectors
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -199,7 +199,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
throw new Exception("System Id can not be blank");
|
throw new Exception("System Id can not be blank");
|
||||||
}
|
}
|
||||||
|
|
||||||
var basePath = Path.GetDirectoryName(name.Split('|').First());
|
var basePath = Path.GetDirectoryName(name.Split('|').First());
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(basePath))
|
if (string.IsNullOrEmpty(basePath))
|
||||||
|
@ -310,8 +309,26 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private void SystemDropDown_SelectedIndexChanged(object sender, EventArgs e)
|
private void SystemDropDown_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Recalculate();
|
Recalculate();
|
||||||
|
do
|
||||||
|
{
|
||||||
|
foreach (Control ctrl in FileSelectorPanel.Controls)
|
||||||
|
{
|
||||||
|
ctrl.Dispose();
|
||||||
|
}
|
||||||
|
} while (FileSelectorPanel.Controls.Count != 0);
|
||||||
|
|
||||||
|
if (SystemDropDown.SelectedItem.ToString() == "GB")
|
||||||
|
{
|
||||||
|
AddButton.Enabled = false;
|
||||||
|
btnRemove.Enabled = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
AddButton.Enabled = true;
|
||||||
|
btnRemove.Enabled = true;
|
||||||
|
}
|
||||||
|
AddButton_Click(null, null);
|
||||||
|
AddButton_Click(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue