SoapboxRaceWorld / GameLauncher_NFSW

An unofficial launcher for Need for Speed: World (https://launcher.worldunited.gg / https://soapboxrace.world)
GNU General Public License v3.0
433 stars 133 forks source link

`CurrentModFileCount` and `TotalModFileCount` variables bug #262

Open MeTonaTOR opened 1 year ago

MeTonaTOR commented 1 year ago

There seems to be an issue on counting the files to be downloaded, count doesnt vanish to be precise as of video: https://www.youtube.com/watch?v=H_0G60JzeJk (file too big to be uploaded via Issues page)

Quickest steps to reproduce:

You will notice that the total ModNet files to be downloaded are a sum of files from NRZ and FRSS (as of Steps to Reproduce)

Possible fix:

According to this file, all we have to do is set CurrentModFileCount and TotalModFileCount to 0, like:

if (modFilesDownloadUrls.Count != 0)
{
    CurrentModFileCount = 0;
    TotalModFileCount = 0;
    this.DownloadModNetFilesRightNow(ModFolderCache);
    DiscordLauncherPresence.Status("Download Server Mods", null);
}

Debug: