Skip to content

Commit 1b74d8e

Browse files
ZimM-LostPolygonenlight
authored andcommitted
Minor tweaks
1 parent f53cdff commit 1b74d8e

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

UnityProject/Assets/LoomSDKBuild/Editor/SamplesDownloader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public static void DownloadSamples() {
4040
$"Downloading Sample {i + 1}/{kSamplesUrls.Length}",
4141
String.Format(
4242
"Downloading archive... {0} MB/{1} MB",
43-
Math.Round(request.downloadedBytes / 1000f / 1000f, 2),
44-
Math.Round((double) Convert.ToUInt32(request.GetResponseHeader("Content-Length")) / 1000f / 1000f, 2)
43+
Math.Round(requestAsyncOperation.webRequest.downloadedBytes / 1000f / 1000f, 2),
44+
Math.Round((double) Convert.ToUInt32(requestAsyncOperation.webRequest.GetResponseHeader("Content-Length")) / 1000f / 1000f, 2)
4545
),
4646
requestAsyncOperation.progress
4747
);

UnityProject/Assets/LoomSDKBuild/PackageBuildUtility/Editor/PackageBuildUtility.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ public static List<string> CollectPaths(string[] includedPaths, string[] exclude
2222
return paths;
2323
}
2424

25-
public static int RunProcess(string buildAssembliesBat, string arguments = null) {
26-
Process buildAssemblyProcess = new Process();
27-
buildAssemblyProcess.StartInfo = new ProcessStartInfo(buildAssembliesBat);
28-
buildAssemblyProcess.StartInfo.Arguments = arguments ?? "";
29-
buildAssemblyProcess.Start();
30-
buildAssemblyProcess.WaitForExit();
31-
return buildAssemblyProcess.ExitCode;
25+
public static int RunProcess(string path, string arguments = null) {
26+
Process process = new Process();
27+
process.StartInfo = new ProcessStartInfo(path);
28+
process.StartInfo.Arguments = arguments ?? "";
29+
process.Start();
30+
process.WaitForExit();
31+
return process.ExitCode;
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)