mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-04 00:56:31 +02:00
Fix exc command
This commit is contained in:
@@ -62,6 +62,8 @@ namespace YesNt.Interpreter.Statements
|
|||||||
|
|
||||||
private void StartProcess(string name, string args)
|
private void StartProcess(string name, string args)
|
||||||
{
|
{
|
||||||
|
RuntimeInfo.OutParametersStack.Clear();
|
||||||
|
|
||||||
FixedProcess process = new FixedProcess
|
FixedProcess process = new FixedProcess
|
||||||
{
|
{
|
||||||
StartInfo = new ProcessStartInfo()
|
StartInfo = new ProcessStartInfo()
|
||||||
@@ -82,7 +84,7 @@ namespace YesNt.Interpreter.Statements
|
|||||||
process.WaitForExit();
|
process.WaitForExit();
|
||||||
|
|
||||||
RuntimeInfo.InParametersStack.Clear();
|
RuntimeInfo.InParametersStack.Clear();
|
||||||
RuntimeInfo.OutParametersStack.Clear();
|
|
||||||
RuntimeInfo.OutParametersStack.Push(process.ExitCode.ToString());
|
RuntimeInfo.OutParametersStack.Push(process.ExitCode.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user