From 4a7a3e8e444366de6c72236eefe0d5e10db4a750 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 10 Dec 2023 15:46:33 +0100 Subject: [PATCH] fixed running on *nix causing log output to appear twice --- build.cake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.cake b/build.cake index ed3373e..60523c9 100644 --- a/build.cake +++ b/build.cake @@ -31,8 +31,11 @@ Task("Run").IsDependentOn("CopyToMods").Does(() => { var exeDir = System.IO.File.ReadAllText($"{tinyLifeDir}/GameDir"); var process = Process.Start(new ProcessStartInfo($"{exeDir}/Tiny Life") { Arguments = $"-v --skip-splash --skip-preloads --debug-saves --ansi {args}", - CreateNoWindow = true + RedirectStandardOutput = true, + RedirectStandardError = true }); + process.BeginOutputReadLine(); + process.BeginErrorReadLine(); // we wait a bit to make sure the process has generated a new log file Thread.Sleep(1000);