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