mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-21 17:45:11 +00:00
discord: Update ApplicationID (#6513)
This commit is contained in:
parent
1217a8e69b
commit
24068b023c
1 changed files with 9 additions and 9 deletions
|
@ -7,7 +7,7 @@ namespace Ryujinx.UI.Common
|
||||||
public static class DiscordIntegrationModule
|
public static class DiscordIntegrationModule
|
||||||
{
|
{
|
||||||
private const string Description = "A simple, experimental Nintendo Switch emulator.";
|
private const string Description = "A simple, experimental Nintendo Switch emulator.";
|
||||||
private const string CliendId = "568815339807309834";
|
private const string ApplicationId = "1216775165866807456";
|
||||||
|
|
||||||
private static DiscordRpcClient _discordClient;
|
private static DiscordRpcClient _discordClient;
|
||||||
private static RichPresence _discordPresenceMain;
|
private static RichPresence _discordPresenceMain;
|
||||||
|
@ -24,14 +24,14 @@ namespace Ryujinx.UI.Common
|
||||||
Details = "Main Menu",
|
Details = "Main Menu",
|
||||||
State = "Idling",
|
State = "Idling",
|
||||||
Timestamps = Timestamps.Now,
|
Timestamps = Timestamps.Now,
|
||||||
Buttons = new[]
|
Buttons =
|
||||||
{
|
[
|
||||||
new Button
|
new Button
|
||||||
{
|
{
|
||||||
Label = "Website",
|
Label = "Website",
|
||||||
Url = "https://ryujinx.org/",
|
Url = "https://ryujinx.org/",
|
||||||
},
|
},
|
||||||
},
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
ConfigurationState.Instance.EnableDiscordIntegration.Event += Update;
|
ConfigurationState.Instance.EnableDiscordIntegration.Event += Update;
|
||||||
|
@ -52,7 +52,7 @@ namespace Ryujinx.UI.Common
|
||||||
// If we need to activate it and the client isn't active, initialize it
|
// If we need to activate it and the client isn't active, initialize it
|
||||||
if (evnt.NewValue && _discordClient == null)
|
if (evnt.NewValue && _discordClient == null)
|
||||||
{
|
{
|
||||||
_discordClient = new DiscordRpcClient(CliendId);
|
_discordClient = new DiscordRpcClient(ApplicationId);
|
||||||
|
|
||||||
_discordClient.Initialize();
|
_discordClient.Initialize();
|
||||||
_discordClient.SetPresence(_discordPresenceMain);
|
_discordClient.SetPresence(_discordPresenceMain);
|
||||||
|
@ -74,14 +74,14 @@ namespace Ryujinx.UI.Common
|
||||||
Details = $"Playing {titleName}",
|
Details = $"Playing {titleName}",
|
||||||
State = (titleId == "0000000000000000") ? "Homebrew" : titleId.ToUpper(),
|
State = (titleId == "0000000000000000") ? "Homebrew" : titleId.ToUpper(),
|
||||||
Timestamps = Timestamps.Now,
|
Timestamps = Timestamps.Now,
|
||||||
Buttons = new[]
|
Buttons =
|
||||||
{
|
[
|
||||||
new Button
|
new Button
|
||||||
{
|
{
|
||||||
Label = "Website",
|
Label = "Website",
|
||||||
Url = "https://ryujinx.org/",
|
Url = "https://ryujinx.org/",
|
||||||
},
|
},
|
||||||
},
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue