Skip to content

Commit

Permalink
Fixed Issue with Extraction Method for Unity 4.5, 4.6, 4.7, and 5.3 s…
Browse files Browse the repository at this point in the history
…eries versions
  • Loading branch information
HerpDerpinstine committed Mar 11, 2021
1 parent 5373577 commit d49e8d3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,15 @@ private static bool ExtractDependencies(UnityVersion version)
folder_path = "Data/PlaybackEngines/windows64standaloneplayer/Managed/";
else if (version.Version.StartsWith("4."))
{
//folder_path = "Data/PlaybackEngines/windowsstandalonesupport/Managed/";
folder_path = "Data/PlaybackEngines/windows64standaloneplayer/Managed/";
if (version.Version.StartsWith("4.5")
|| version.Version.StartsWith("4.6")
|| version.Version.StartsWith("4.7"))
folder_path = "Data/PlaybackEngines/windowsstandalonesupport/Managed/";
else
folder_path = "Data/PlaybackEngines/windows64standaloneplayer/Managed/";
}
else if (version.Version.StartsWith("5.3"))
folder_path = "Editor/Data/PlaybackEngines/WebPlayer/Managed/";

ProcessStartInfo p = new ProcessStartInfo();
p.FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "7z/7z.exe");
Expand Down

0 comments on commit d49e8d3

Please sign in to comment.