Allow for jpegs and attempt to not mess shortcuts form other apps

Co-Authored-By: David Ross Smith <5095074+dragredsim@users.noreply.github.com>
pull/101/merge
Brian Lima 4 weeks ago
parent a07d1b8e5e
commit 91cc228ca2

@ -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)
{

@ -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.");

Loading…
Cancel
Save