Inheritance: UnityEditor.Utils.Program
Exemple #1
0
 public static void RunNativeProgram(string exe, string args)
 {
     using (NativeProgram program = new NativeProgram(exe, args))
     {
         program.Start();
         program.WaitForExit();
         if (program.ExitCode != 0)
         {
             UnityEngine.Debug.LogError("Failed running " + exe + " " + args + "\n\n" + program.GetAllOutput());
             throw new Exception($"{exe} did not run properly!");
         }
     }
 }
Exemple #2
0
 public static void RunNativeProgram(string exe, string args)
 {
     using (NativeProgram nativeProgram = new NativeProgram(exe, args))
     {
         nativeProgram.Start();
         nativeProgram.WaitForExit();
         if (nativeProgram.ExitCode != 0)
         {
             UnityEngine.Debug.LogError((object)("Failed running " + exe + " " + args + "\n\n" + nativeProgram.GetAllOutput()));
             throw new Exception(string.Format("{0} did not run properly!", (object)exe));
         }
     }
 }
Exemple #3
0
 public static void RunNativeProgram(string exe, string args)
 {
     using (NativeProgram program = new NativeProgram(exe, args))
     {
         program.Start();
         program.WaitForExit();
         if (program.ExitCode != 0)
         {
             Debug.LogError("Failed running " + exe + " " + args + "\n\n" + program.GetAllOutput());
             throw new Exception(string.Format("{0} did not run properly!", exe));
         }
     }
 }
 public static void RunNativeProgram(string exe, string args)
 {
   using (NativeProgram nativeProgram = new NativeProgram(exe, args))
   {
     nativeProgram.Start();
     nativeProgram.WaitForExit();
     if (nativeProgram.ExitCode != 0)
     {
       UnityEngine.Debug.LogError((object) ("Failed running " + exe + " " + args + "\n\n" + nativeProgram.GetAllOutput()));
       throw new Exception(string.Format("{0} did not run properly!", (object) exe));
     }
   }
 }
        // Used when debugging il2cpp.exe from Windows, please don't remove it
        public static void RunNativeProgram(string exe, string args)
        {
            using (var p = new NativeProgram(exe, args))
            {
                p.Start();
                p.WaitForExit();
                if (p.ExitCode != 0)
                {
                    Debug.LogError("Failed running " + exe + " " + args + "\n\n" + p.GetAllOutput());

                    throw new Exception(string.Format("{0} did not run properly!", exe));
                }
            }
        }
Exemple #6
0
 public static void RunNativeProgram(string exe, string args)
 {
     using (NativeProgram nativeProgram = new NativeProgram(exe, args))
     {
         nativeProgram.Start();
         nativeProgram.WaitForExit();
         if (nativeProgram.ExitCode != 0)
         {
             UnityEngine.Debug.LogError(string.Concat(new string[]
             {
                 "Failed running ",
                 exe,
                 " ",
                 args,
                 "\n\n",
                 nativeProgram.GetAllOutput()
             }));
             throw new Exception(string.Format("{0} did not run properly!", exe));
         }
     }
 }
Exemple #7
0
		public static void RunNativeProgram(string exe, string args)
		{
			using (NativeProgram nativeProgram = new NativeProgram(exe, args))
			{
				nativeProgram.Start();
				nativeProgram.WaitForExit();
				if (nativeProgram.ExitCode != 0)
				{
					Debug.LogError(string.Concat(new string[]
					{
						"Failed running ",
						exe,
						" ",
						args,
						"\n\n",
						nativeProgram.GetAllOutput()
					}));
					throw new Exception(string.Format("{0} did not run properly!", exe));
				}
			}
		}