allow including ansi code in logs for modders

This commit is contained in:
Ell 2023-12-01 13:44:56 +01:00
parent 1620b0f462
commit cd1445af8a
2 changed files with 7 additions and 3 deletions

View file

@ -24,4 +24,8 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Remove="_UnhandledException.txt" />
</ItemGroup>
</Project>

View file

@ -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";