diff --git a/FortniteLauncher/Source/Content/API/Authentication/LoginEndpoint.cs b/FortniteLauncher/Source/Content/API/Authentication/LoginEndpoint.cs index 77a0dbe..a8e20f6 100644 --- a/FortniteLauncher/Source/Content/API/Authentication/LoginEndpoint.cs +++ b/FortniteLauncher/Source/Content/API/Authentication/LoginEndpoint.cs @@ -27,6 +27,8 @@ public static async Task CheckLogin(string Email, string Password) if (Response.Status == VerifyLoginStatus.Success.ToString()) { + EonRPC.UpdatePresence(); + GlobalSettings.Options.Username = Response.Username; GlobalSettings.Options.Email = Response.Email; GlobalSettings.Options.SkinUrl = Response.Skin; diff --git a/FortniteLauncher/Source/Core/Configuration/Definitions.cs b/FortniteLauncher/Source/Core/Configuration/Definitions.cs index df004b7..a38856b 100644 --- a/FortniteLauncher/Source/Core/Configuration/Definitions.cs +++ b/FortniteLauncher/Source/Core/Configuration/Definitions.cs @@ -1,7 +1,7 @@ class Definitions { // API Endpoints - public const string CurrentVersion = "1.3.4"; + public const string CurrentVersion = "1.3.5"; public const string BaseURL = "https://services.eonfn.net"; public const string CDN_URL = "https://cdn.eonfn.dev"; diff --git a/FortniteLauncher/Source/Platform/Discord/DiscordRichPresence.cs b/FortniteLauncher/Source/Platform/Discord/DiscordRichPresence.cs index f6270fa..da81b47 100644 --- a/FortniteLauncher/Source/Platform/Discord/DiscordRichPresence.cs +++ b/FortniteLauncher/Source/Platform/Discord/DiscordRichPresence.cs @@ -21,26 +21,29 @@ public static async void Start() }); } - private static void UpdatePresence() + public static void UpdatePresence() { if (!Client.IsInitialized) return; Client.SetPresence(new RichPresence { - State = "Chapter 2 Season 7 - OG Fortnite", + State = "Project Eon", + Details = "An OG Fortnite Experience", Timestamps = new Timestamps { Start = StartTimestamp }, Assets = new Assets { + SmallImageKey = string.IsNullOrEmpty(GlobalSettings.Options.SkinUrl) ? "" : GlobalSettings.Options.SkinUrl, LargeImageKey = "fn17", - LargeImageText = "Eon" + LargeImageText = "Playing Eon." }, Buttons = new[] { - new Button { Label = "Join Discord", Url = ProjectDefinitions.Discord }, + new Button { Label = "Join Discord", Url = $"{ProjectDefinitions.Discord}?u={GlobalSettings.Options.Username}", } + } }); } } \ No newline at end of file