remove the spammy exit 0 output
This commit is contained in:
@@ -34,7 +34,6 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
foreach (var filePath in Directory.GetFiles(projectPath, "*.cs", SearchOption.AllDirectories))
|
foreach (var filePath in Directory.GetFiles(projectPath, "*.cs", SearchOption.AllDirectories))
|
||||||
console.Core.Environment.AddSourceCode(project, filePath, null);
|
console.Core.Environment.AddSourceCode(project, filePath, null);
|
||||||
|
|
||||||
console.OutputGenerated += OnOutputGenerated;
|
|
||||||
console.ViolationEncountered += OnViolationEncountered;
|
console.ViolationEncountered += OnViolationEncountered;
|
||||||
console.Start(new[] { project }, true);
|
console.Start(new[] { project }, true);
|
||||||
|
|
||||||
@@ -42,11 +41,6 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
Environment.Exit(1);
|
Environment.Exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnOutputGenerated(object sender, OutputEventArgs e)
|
|
||||||
{
|
|
||||||
Console.WriteLine(e.Output);
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnViolationEncountered(object sender, ViolationEventArgs e)
|
void OnViolationEncountered(object sender, ViolationEventArgs e)
|
||||||
{
|
{
|
||||||
violationCount++;
|
violationCount++;
|
||||||
|
|||||||
Reference in New Issue
Block a user