mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Update consoleFunctions.cpp
This commit is contained in:
parent
6807abc8b6
commit
56a89ee0b0
1 changed files with 2 additions and 2 deletions
|
|
@ -2806,11 +2806,11 @@ DefineEngineFunction(getTimestamp, const char*, (), ,
|
|||
#ifdef TORQUE_TOOLS
|
||||
DefineEngineFunction(systemCommand, S32, (const char* commandLineAction, const char* callBackFunction), (""), "")
|
||||
{
|
||||
if (callBackFunction[0] != '\0')
|
||||
if (commandLineAction && commandLineAction[0] != '\0')
|
||||
{
|
||||
S32 result = system(commandLineAction);
|
||||
|
||||
if (callBackFunction[0])
|
||||
if (callBackFunction && callBackFunction[0] != '\0')
|
||||
{
|
||||
if (Con::isFunction(callBackFunction))
|
||||
Con::executef(callBackFunction, result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue