Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public static async Task<ApiResponse> 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;
Expand Down
2 changes: 1 addition & 1 deletion FortniteLauncher/Source/Core/Configuration/Definitions.cs
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
11 changes: 7 additions & 4 deletions FortniteLauncher/Source/Platform/Discord/DiscordRichPresence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
}
}
});
}
}