Skip to content

Commit

Permalink
Temporary fix; read comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Pictoverse committed Jun 18, 2018
1 parent dfd6fc4 commit 500ac27
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions XCI_Explorer/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,17 @@ private void LoadGameInfos()
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];
}
}
Expand Down

0 comments on commit 500ac27

Please sign in to comment.