From cd1445af8afadf0d0e902d1b4cf7c61e080d6b86 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 1 Dec 2023 13:44:56 +0100 Subject: [PATCH] allow including ansi code in logs for modders --- ExampleMod.csproj | 4 ++++ build.cake | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ExampleMod.csproj b/ExampleMod.csproj index 4a768b9..2dcaddd 100644 --- a/ExampleMod.csproj +++ b/ExampleMod.csproj @@ -24,4 +24,8 @@ PreserveNewest + + + + diff --git a/build.cake b/build.cake index b66d10a..3908f49 100644 --- a/build.cake +++ b/build.cake @@ -29,12 +29,12 @@ Task("Run").IsDependentOn("CopyToMods").Does(() => { // start the tiny life process 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", + Arguments = "-v --skip-splash --skip-preloads --debug-saves --ansi", CreateNoWindow = true }); - // we wait a bit to make sure the process has generated a new log file, bleh - Thread.Sleep(3000); + // we wait a bit to make sure the process has generated a new log file + Thread.Sleep(1000); // attach to the newest log file var logsDir = $"{tinyLifeDir}/Logs";