mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #1571 from Azaezel/alpha41/evalExtension
eval echo aug
This commit is contained in:
commit
432318224e
1 changed files with 2 additions and 2 deletions
|
|
@ -2365,9 +2365,9 @@ DefineEngineFunction( exec, bool, ( const char* fileName, bool noCalls, bool jou
|
||||||
return Con::executeFile(fileName, noCalls, journalScript);
|
return Con::executeFile(fileName, noCalls, journalScript);
|
||||||
}
|
}
|
||||||
|
|
||||||
DefineEngineFunction( eval, const char*, ( const char* consoleString ), , "eval(consoleString)" )
|
DefineEngineFunction( eval, const char*, ( const char* consoleString, bool echo ), (false), "eval(consoleString)")
|
||||||
{
|
{
|
||||||
Con::EvalResult returnValue = Con::evaluate(consoleString, false, NULL);
|
Con::EvalResult returnValue = Con::evaluate(consoleString, echo, NULL);
|
||||||
|
|
||||||
return Con::getReturnBuffer(returnValue.value.getString());
|
return Con::getReturnBuffer(returnValue.value.getString());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue