From 918735e29458e1d7ca1482ea9ba8f3422d9a96fa Mon Sep 17 00:00:00 2001 From: Pictoverse <37807801+Pictoverse@users.noreply.github.com> Date: Sun, 17 Jun 2018 22:21:08 -0400 Subject: [PATCH] Temporary fix for crashing with Card2 XCIs --- XCI_Explorer/MainForm.cs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/XCI_Explorer/MainForm.cs b/XCI_Explorer/MainForm.cs index c48acc8..e01315b 100644 --- a/XCI_Explorer/MainForm.cs +++ b/XCI_Explorer/MainForm.cs @@ -273,7 +273,7 @@ namespace XCI_Explorer private void LoadGameInfos() { - bool msgFlag = false; + bool msgFlag = false, msgFlag2 = false; CB_RegionName.Items.Clear(); TB_Name.Text = ""; TB_Dev.Text = ""; @@ -345,7 +345,15 @@ namespace XCI_Explorer 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 @@ -353,7 +361,11 @@ namespace XCI_Explorer 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]"); }