mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-11-05 05:29:09 +01:00
fixed running on *nix causing log output to appear twice
This commit is contained in:
parent
eb4bebe12a
commit
4a7a3e8e44
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue