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>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Remove="_UnhandledException.txt" />
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -29,12 +29,12 @@ Task("Run").IsDependentOn("CopyToMods").Does(() => {
|
||||||
// start the tiny life process
|
// start the tiny life process
|
||||||
var exeDir = System.IO.File.ReadAllText($"{tinyLifeDir}/GameDir");
|
var exeDir = System.IO.File.ReadAllText($"{tinyLifeDir}/GameDir");
|
||||||
var process = Process.Start(new ProcessStartInfo($"{exeDir}/Tiny Life") {
|
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
|
CreateNoWindow = true
|
||||||
});
|
});
|
||||||
|
|
||||||
// we wait a bit to make sure the process has generated a new log file, bleh
|
// we wait a bit to make sure the process has generated a new log file
|
||||||
Thread.Sleep(3000);
|
Thread.Sleep(1000);
|
||||||
|
|
||||||
// attach to the newest log file
|
// attach to the newest log file
|
||||||
var logsDir = $"{tinyLifeDir}/Logs";
|
var logsDir = $"{tinyLifeDir}/Logs";
|
||||||
|
|
Loading…
Reference in a new issue