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 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)); } } }
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)); } } }
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)); } } }
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)); } } }