mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-11-22 12:03:28 +01:00
allow including ansi code in logs for modders
This commit is contained in:
parent
1620b0f462
commit
cd1445af8a
2 changed files with 7 additions and 3 deletions
|
@ -24,4 +24,8 @@
|
|||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="_UnhandledException.txt" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue