Skip to content

Commit

Permalink
Temporary fix for crashing with Card2 XCIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pictoverse committed Jun 18, 2018
1 parent 8ad9b34 commit 918735e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions XCI_Explorer/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private void LoadXCI()

private void LoadGameInfos()
{
bool msgFlag = false;
bool msgFlag = false, msgFlag2 = false;
CB_RegionName.Items.Clear();
TB_Name.Text = "";
TB_Dev.Text = "";
Expand Down Expand Up @@ -345,15 +345,27 @@ private void LoadGameInfos()
File.Delete("meta");
Directory.Delete("data", true);
}
CB_RegionName.SelectedIndex = 0;
try
{
CB_RegionName.SelectedIndex = 0;
}
catch
{
// temporary fix until a dev can add card2 support
msgFlag2 = true;
}
}
}
else
{
TB_Dev.Text = Mkey + " not found";
TB_Name.Text = Mkey + " not found";
}
if (msgFlag)
if (msgFlag2)
{
MessageBox.Show("This XCI is a Card2 release. Card2 is currently not supported [CARD2]");
}
else if (msgFlag)
{
MessageBox.Show("This XCI may not support trim/extract functions [LOGO]");
}
Expand Down

0 comments on commit 918735e

Please sign in to comment.