From 205dcdf2c79fd511f5b760ca667b2f79359dad0a Mon Sep 17 00:00:00 2001 From: temacdonald Date: Sat, 2 May 2020 14:51:28 +1200 Subject: [PATCH] Fixed SteamGame.ToString() Also removed some unusued code from ShortcutForm. --- .../GameLibraries/SteamGame.cs | 7 +-- .../UIForms/ShortcutForm.cs | 45 ------------------- 2 files changed, 1 insertion(+), 51 deletions(-) diff --git a/HeliosDisplayManagement/GameLibraries/SteamGame.cs b/HeliosDisplayManagement/GameLibraries/SteamGame.cs index 3db73e2..fceee87 100644 --- a/HeliosDisplayManagement/GameLibraries/SteamGame.cs +++ b/HeliosDisplayManagement/GameLibraries/SteamGame.cs @@ -488,12 +488,7 @@ namespace HeliosPlus.GameLibraries return name + " " + Language.Updating; } - /*if (IsInstalled) - { - return name + " " + Language.Installed; - }*/ - - return name + " " + Language.Not_Installed; + return name; } } diff --git a/HeliosDisplayManagement/UIForms/ShortcutForm.cs b/HeliosDisplayManagement/UIForms/ShortcutForm.cs index e84a27e..7fa4a32 100644 --- a/HeliosDisplayManagement/UIForms/ShortcutForm.cs +++ b/HeliosDisplayManagement/UIForms/ShortcutForm.cs @@ -780,51 +780,6 @@ namespace HeliosPlus.UIForms 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) { return;