Skip to content

Commit

Permalink
Lazily work around messy parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevTV committed Aug 29, 2024
1 parent a5adaee commit 4d88386
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions UnityVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ internal static void Refresh()
string[] parts = url.Split('/');
string fullVersion = parts[0];
string hash = parts[1];

string foundUrl = $"https://download.unity3d.com/download_unity/{hash}/Windows64EditorInstaller/UnitySetup64-{fullVersion}.exe";

VersionTbl.Add(new UnityVersion(fullVersion, foundUrl));
try
{
VersionTbl.Add(new UnityVersion(fullVersion, foundUrl));
}
catch { }
}

VersionTbl.Reverse();
Expand Down

0 comments on commit 4d88386

Please sign in to comment.