Skip to content

Commit 0ad4adf

Browse files
committed
add status messages for init script fetching
1 parent 70dd994 commit 0ad4adf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: UnityLauncherPro/Tools.cs

+4
Original file line numberDiff line numberDiff line change
@@ -817,20 +817,24 @@ public static async Task DownloadInitScript(string currentInitScriptFullPath, st
817817
{
818818
File.Move(tempFile, currentInitScriptFullPath);
819819
}
820+
SetStatus("Downloaded latest init script.");
820821
}
821822
else
822823
{
823824
Console.WriteLine("Invalid c# init file..(missing correct Namespace, Class or Method)");
825+
SetStatus("Invalid c# init file..(missing correct Namespace, Class or Method)");
824826
}
825827
}
826828
catch (Exception e)
827829
{
828830
Console.WriteLine("File exception: " + e.Message);
831+
SetStatus("File exception: " + e.Message);
829832
}
830833
}
831834
else
832835
{
833836
Console.WriteLine("Failed to download init script from: " + currentInitScriptLocationOrURL);
837+
SetStatus("Failed to download init script from: " + currentInitScriptLocationOrURL);
834838
}
835839
}
836840

0 commit comments

Comments
 (0)