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

Function isCurrentScriptToolScript

Engine/source/console/console.cpp:1791–1804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1789//------------------------------------------------------------------------------
1790
1791bool isCurrentScriptToolScript()
1792{
1793 // With a player build we ALWAYS return false
1794#ifndef TORQUE_TOOLS
1795 return false;
1796#else
1797 const StringTableEntry cbFullPath = CodeBlock::getCurrentCodeBlockFullPath();
1798 if(cbFullPath == NULL)
1799 return false;
1800 const StringTableEntry exePath = Platform::getMainDotCsDir();
1801
1802 return dStrnicmp(exePath, cbFullPath, dStrlen(exePath)) == 0;
1803#endif
1804}
1805
1806//------------------------------------------------------------------------------
1807

Callers 5

expandToolScriptFilenameFunction · 0.85
execMethod · 0.85
executeMethod · 0.85
makeFullPathNameMethod · 0.85

Calls 2

dStrnicmpFunction · 0.85
dStrlenFunction · 0.50

Tested by

no test coverage detected