quite a bit, too much to summarize here
This commit is contained in:
parent
24845b6b52
commit
5f22d25559
336 changed files with 171740 additions and 351 deletions
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApplication2
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
|
@ -13,13 +13,32 @@ namespace WindowsFormsApplication2
|
|||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
if (ConfigManager.GetEntry("DiscordClientID") != "")
|
||||
{
|
||||
var discord = new Discord.Discord(DiscordRPC.discordAppID, (UInt64)Discord.CreateFlags.Default);
|
||||
|
||||
#if DEBUG
|
||||
discord.SetLogHook(Discord.LogLevel.Debug, (level, message) =>
|
||||
{
|
||||
ConsoleManager.WriteToConsole($"DiscordLog: {level} {message}");
|
||||
});
|
||||
#else
|
||||
discord.SetLogHook(Discord.LogLevel.Warn, (level, message) =>
|
||||
{
|
||||
ConsoleManager.WriteToCOnsole($"DiscordLog: {level} {message}");
|
||||
});
|
||||
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
FileChecker.FolderCheck();
|
||||
FileChecker.FileCheck();
|
||||
Application.Run(new Form1());
|
||||
|
||||
|
||||
ConsoleManager.WriteToConsole("Starting Jellyfin Rich Presence...");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue