From 500ac275f44bbb3bf19e50d7c47a4719a0aa0691 Mon Sep 17 00:00:00 2001 From: Pictoverse <37807801+Pictoverse@users.noreply.github.com> Date: Sun, 17 Jun 2018 20:02:48 -0400 Subject: [PATCH] Temporary fix; read comment --- XCI_Explorer/MainForm.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/XCI_Explorer/MainForm.cs b/XCI_Explorer/MainForm.cs index d8d8593..f7f7ab2 100644 --- a/XCI_Explorer/MainForm.cs +++ b/XCI_Explorer/MainForm.cs @@ -320,10 +320,17 @@ namespace XCI_Explorer if (NACP.NACP_Strings[i].Check != 0) { CB_RegionName.Items.Add(Language[i]); - using (Bitmap original = new Bitmap("data\\icon_" + Language[i].Replace(" ", "") + ".dat")) - { - Icons[i] = new Bitmap(original); - } + try + { + using (Bitmap original = new Bitmap("data\\icon_" + Language[i].Replace(" ", "") + ".dat")) + { + Icons[i] = new Bitmap(original); + } + } + catch + { + // using bad coding coding practices as a temp fix until someone can figure out the problem + } PB_GameIcon.BackgroundImage = Icons[i]; } }