| 1789 | //------------------------------------------------------------------------------ |
| 1790 | |
| 1791 | bool 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 |
no test coverage detected