Esempio n. 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)
         {
             Debug.LogError("Failed running " + exe + " " + args + "\n\n" + program.GetAllOutput());
             throw new Exception(string.Format("{0} did not run properly!", exe));
         }
     }
 }
Esempio n. 2
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));
         }
     }
 }
Esempio n. 3
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));
     }
   }
 }
Esempio n. 4
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));
         }
     }
 }
Esempio n. 5
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));
				}
			}
		}
Esempio n. 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((object)("Failed running " + exe + " " + args + "\n\n" + nativeProgram.GetAllOutput()));
             throw new Exception(string.Format("{0} did not run properly!", (object)exe));
         }
     }
 }