| 561 | } |
| 562 | |
| 563 | StringTableEntry Platform::stripBasePath(const char *path) |
| 564 | { |
| 565 | if(path == NULL) |
| 566 | return NULL; |
| 567 | |
| 568 | StringTableEntry str = tryStripBasePath(path, Platform::getMainDotCsDir()); |
| 569 | |
| 570 | if(str != NULL ) |
| 571 | return str; |
| 572 | |
| 573 | str = tryStripBasePath(path, Platform::getCurrentDirectory()); |
| 574 | if(str != NULL ) |
| 575 | return str; |
| 576 | |
| 577 | str = tryStripBasePath(path, Platform::getPrefsPath()); |
| 578 | if(str != NULL ) |
| 579 | return str; |
| 580 | |
| 581 | return path; |
| 582 | } |
| 583 | |
| 584 | //----------------------------------------------------------------------------- |
| 585 |
nothing calls this directly
no test coverage detected