|
@@ -2806,11 +2806,11 @@ DefineEngineFunction(getTimestamp, const char*, (), ,
|
|
|
#ifdef TORQUE_TOOLS
|
|
|
DefineEngineFunction(systemCommand, S32, (const char* commandLineAction, const char* callBackFunction), (""), "")
|
|
|
{
|
|
|
- if (commandLineAction != "")
|
|
|
+ if (callBackFunction[0] != '\0')
|
|
|
{
|
|
|
S32 result = system(commandLineAction);
|
|
|
|
|
|
- if (callBackFunction != "" && callBackFunction[0])
|
|
|
+ if (callBackFunction[0])
|
|
|
{
|
|
|
if (Con::isFunction(callBackFunction))
|
|
|
Con::executef(callBackFunction, result);
|