MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / isCurrentScriptToolScript

Function isCurrentScriptToolScript

Engine/source/console/console.cpp:1877–1890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1875//------------------------------------------------------------------------------
1876
1877bool isCurrentScriptToolScript()
1878{
1879 // With a player build we ALWAYS return false
1880#ifndef TORQUE_TOOLS
1881 return false;
1882#else
1883 const StringTableEntry cbFullPath = CodeBlock::getCurrentCodeBlockFullPath();
1884 if(cbFullPath == NULL)
1885 return false;
1886 const StringTableEntry exePath = Platform::getMainDotCsDir();
1887
1888 return dStrnicmp(exePath, cbFullPath, dStrlen(exePath)) == 0;
1889#endif
1890}
1891
1892//------------------------------------------------------------------------------
1893

Callers 4

expandToolScriptFilenameFunction · 0.85
executeMethod · 0.85
makeFullPathNameMethod · 0.85

Calls 2

dStrnicmpFunction · 0.85
dStrlenFunction · 0.50

Tested by

no test coverage detected