Skip to content

Commit

Permalink
Fixes #262
Browse files Browse the repository at this point in the history
Fixed:
- Server Mods File Download Count would fail to display correctly if the game crashed and returned to the login screen. In turn switching to another server and redownloading switched server mods
  • Loading branch information
DavidCarbon committed Nov 1, 2023
1 parent 218389d commit c1fa49a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions SBRW.Launcher.Net/App/UI_Forms/Main_Screen/Screen_Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,16 @@ private void Game_Check_Launch()
{
Presence_Launcher.Start(false, Presence_Launcher.ApplicationID());

/* Reset Sever Mods File Download Count (Visual Only) */
CurrentModFileCount = 0;
TotalModFileCount = 0;

if (ModFilesDownloadUrls != default)
{
/* If Server Mod List is not Empty, Empty it just in case */
ModFilesDownloadUrls.Clear();
}

try
{
if (UI_MODE != 12)
Expand Down
2 changes: 1 addition & 1 deletion SBRW.Launcher.Net/SBRW.Launcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
You can specify this option only for projects that target .NET Framework 4.5 or later.
<PlatformTarget>x86</PlatformTarget>-->
<Copyright>© Soapbox Race World</Copyright>
<GlobalVersion>2.2.2</GlobalVersion>
<GlobalVersion>2.2.3</GlobalVersion>
<GlobalVersion Condition=" '$(GlobalVersion)' == '' ">2.2.0.$([System.DateTime]::UtcNow.ToString(mmff))</GlobalVersion>
<Version>$(GlobalVersion)</Version>
<AssemblyVersion>$(GlobalVersion)</AssemblyVersion>
Expand Down
2 changes: 1 addition & 1 deletion SBRW.Launcher.RunTime/InsiderKit/KitEnabler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class InsiderInfo
/* Current month, day, year (2 digits), and letter! Ex: 12-15-20-A */
/* If a second build gets release within the same day bump letter version up (No R2 or D2)*/

private static string InsiderBuildNumber { get; set; } = "05-18-23-C";
private static string InsiderBuildNumber { get; set; } = "10-31-23-A";

public static string BuildNumberOnly()
{
Expand Down

0 comments on commit c1fa49a

Please sign in to comment.