| 1875 | //------------------------------------------------------------------------------ |
| 1876 | |
| 1877 | bool 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 |
no test coverage detected