Move file existence check and improve process output handling

This commit is contained in:
Stone_Red
2026-03-06 00:09:11 +01:00
parent 246e05dcd9
commit 1872c4fb35
3 changed files with 11 additions and 11 deletions
@@ -64,7 +64,7 @@ internal class SystemStatements : StatementRuntimeInformation
}
}
private static void Process_ErrorDataReceived(Utilities.DataReceivedEventArgs e, Stack<string> outputStack)
private void Process_ErrorDataReceived(Utilities.DataReceivedEventArgs e, Stack<string> outputStack)
{
if (string.IsNullOrWhiteSpace(e.Data))
{
@@ -72,10 +72,10 @@ internal class SystemStatements : StatementRuntimeInformation
}
outputStack.Push(e.Data.ToSafeString());
Console.Write("Error: " + e.Data);
RuntimeInfo.Write("Error: " + e.Data);
}
private static void Process_OutputDataReceived(Utilities.DataReceivedEventArgs e, Stack<string> outputStack)
private void Process_OutputDataReceived(Utilities.DataReceivedEventArgs e, Stack<string> outputStack)
{
if (string.IsNullOrWhiteSpace(e.Data))
{
@@ -83,7 +83,7 @@ internal class SystemStatements : StatementRuntimeInformation
}
outputStack.Push(e.Data.ToSafeString());
Console.Write(e.Data);
RuntimeInfo.Write(e.Data);
}
private void StartProcess(string name, string args)