diff --git a/UWPHook/AppEntry.cs b/UWPHook/AppEntry.cs index 3fe7736..a166b63 100644 --- a/UWPHook/AppEntry.cs +++ b/UWPHook/AppEntry.cs @@ -87,8 +87,10 @@ namespace UWPHook try { - //Get every png in this directory, Steam only allows for .png's + //Get every png, jpg or jpeg in this directory, Steam only allows for .png's but jpgs work too images.AddRange(Directory.GetFiles(_icon_path, "*.png")); + images.AddRange(Directory.GetFiles(_icon_path, "*.jpg")); + images.AddRange(Directory.GetFiles(_icon_path, "*.jpeg")); } catch (DirectoryNotFoundException) { diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs index bd38575..66e4b26 100644 --- a/UWPHook/GamesWindow.xaml.cs +++ b/UWPHook/GamesWindow.xaml.cs @@ -478,7 +478,7 @@ namespace UWPHook { Log.Verbose(shortcuts[i].ToString()); - if (shortcuts[i].AppName == app.Name) + if (shortcuts[i].AppName == app.Name && shortcuts[i].Exe == exePath) { shortcutAlreadyExists = true; Log.Verbose(app.Name + " already added to Steam. Updating existing shortcut.");