Browse Source

add executing file reporting to the trace(true/false) script command

AzaezelX 2 days ago
parent
commit
f78f3606b5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Engine/source/console/torquescript/runtime.cpp

+ 2 - 0
Engine/source/console/torquescript/runtime.cpp

@@ -402,6 +402,8 @@ namespace TorqueScript
 #ifdef TORQUE_DEBUG
          Con::printf("Executing %s.", scriptFileName);
 #endif
+         if (Con::gTraceOn)
+            Con::printf("Executing %s.", scriptFileName);
 
          CodeBlock *newCodeBlock = new CodeBlock();
          StringTableEntry name = StringTable->insert(scriptFileName);