Skip to content

Commit 3ea8d0e

Browse files
committed
1.4.1 fixes
1 parent 97f35a9 commit 3ea8d0e

184 files changed

Lines changed: 2677 additions & 32 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DiscordRP/MainWindow.xaml.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,27 +47,6 @@ public MainWindow()
4747
}
4848
}
4949
};
50-
51-
AddShortcut();
52-
}
53-
54-
private static void AddShortcut()
55-
{
56-
string pathToExe = System.Reflection.Assembly.GetExecutingAssembly().Location;
57-
string commonStartMenuPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu);
58-
string appStartMenuPath = Path.Combine(commonStartMenuPath, "Programs", "DiscordRP");
59-
60-
if (!Directory.Exists(appStartMenuPath))
61-
Directory.CreateDirectory(appStartMenuPath);
62-
63-
string shortcutLocation = Path.Combine(appStartMenuPath, "DiscordRP.lnk");
64-
WshShell shell = new WshShell();
65-
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(shortcutLocation);
66-
67-
shortcut.Description = "Custom Discord Rich Presence";
68-
shortcut.IconLocation = $"{Environment.CurrentDirectory}\\Resources\\Discord.ico";
69-
shortcut.TargetPath = pathToExe;
70-
shortcut.Save();
7150
}
7251

7352
public void CheckUpdates()
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

DiscordRP/bin/Debug/DiscordRP.exe

-1 KB
Binary file not shown.

DiscordRP/bin/Debug/DiscordRP.pdb

-2 KB
Binary file not shown.
406 KB
Binary file not shown.
382 KB
Binary file not shown.
82 KB
Binary file not shown.
686 KB
Binary file not shown.
104 KB
Binary file not shown.

0 commit comments

Comments
 (0)