| 1296 | } |
| 1297 | |
| 1298 | bool Platform::dumpDirectories(const char *path, Vector<StringTableEntry> &directoryVector, S32 depth, bool noBasePath) |
| 1299 | { |
| 1300 | #ifdef TORQUE_POSIX_PATH_CASE_INSENSITIVE |
| 1301 | dsize_t pathLength = dStrlen(path); |
| 1302 | char* caseSensitivePath = new char[pathLength + 1]; |
| 1303 | |
| 1304 | // Load path into temporary buffer |
| 1305 | dMemcpy(caseSensitivePath, path, pathLength); |
| 1306 | caseSensitivePath[pathLength] = 0x00; |
| 1307 | ResolvePathCaseInsensitive(caseSensitivePath, pathLength, false); |
| 1308 | #else |
| 1309 | const char* caseSensitivePath = path; |
| 1310 | #endif |
| 1311 | |
| 1312 | bool retVal = recurseDumpDirectories(caseSensitivePath, "", directoryVector, -1, depth, noBasePath); |
| 1313 | clearExcludedDirectories(); |
| 1314 | |
| 1315 | #ifdef TORQUE_POSIX_PATH_CASE_INSENSITIVE |
| 1316 | delete[] caseSensitivePath; |
| 1317 | #endif |
| 1318 | return retVal; |
| 1319 | } |
| 1320 | |
| 1321 | StringTableEntry Platform::getExecutableName() |
| 1322 | { |
nothing calls this directly
no test coverage detected