mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Update consoleFunctions.cpp
This commit is contained in:
parent
6807abc8b6
commit
56a89ee0b0
|
|
@ -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…
Reference in a new issue