Fixed SteamGame.ToString()

Also removed some unusued code from ShortcutForm.
This commit is contained in:
temacdonald 2020-05-02 14:51:28 +12:00
parent 25abab0246
commit 205dcdf2c7
2 changed files with 1 additions and 51 deletions

View File

@ -488,12 +488,7 @@ namespace HeliosPlus.GameLibraries
return name + " " + Language.Updating; return name + " " + Language.Updating;
} }
/*if (IsInstalled) return name;
{
return name + " " + Language.Installed;
}*/
return name + " " + Language.Not_Installed;
} }
} }

View File

@ -780,51 +780,6 @@ namespace HeliosPlus.UIForms
il_games.Images.Add(Image.FromFile("Resources/Steam.ico")); il_games.Images.Add(Image.FromFile("Resources/Steam.ico"));
} }
/*using (TKageyu.Utils.IconExtractor IconEx = new TKageyu.Utils.IconExtractor(Application.ExecutablePath))
{
Icon icoAppIcon = IconEx.GetIcon(0); // Because standard System.Drawing.Icon.ExtractAssociatedIcon() returns ONLY 32x32.
picboxAppLogo.Image = ExtractVistaIcon(icoAppIcon);
}
try
{
MultiIcon shortcutIcon = new MultiIcon();
shortcutIcon.Load(game.GameIconPath);
il_games.Images.Add(shortcutIcon[0].Icon.ToBitmap());
}
catch (InvalidFileException)
{
try
{
Icon chosenIcon;
IconExtractor ie = new IconExtractor(game.GameIconPath);
if (ie.Count > 0)
{
chosenIcon = ie.GetIcon(0);
foreach (Icon gameIcon in ie.GetAllIcons())
{
if (gameIcon.Size.Height > chosenIcon.Size.Height)
{
chosenIcon = gameIcon;
}
}
il_games.Images.Add(chosenIcon.ToBitmap());
}
else
{
il_games.Images.Add(Icon.ExtractAssociatedIcon(game.GameIconPath).ToBitmap());
}
}
catch (System.ComponentModel.Win32Exception)
{
il_games.Images.Add(Icon.ExtractAssociatedIcon(game.GameIconPath).ToBitmap());
}
}*/
if (!Visible) if (!Visible)
{ {
return; return;