| 579 | } |
| 580 | |
| 581 | IExtension *CExtensionManager::FindExtensionByFile(const char *file) |
| 582 | { |
| 583 | List<CExtension *>::iterator iter; |
| 584 | CExtension *pExt; |
| 585 | |
| 586 | /* Chomp off the path */ |
| 587 | char lookup[PLATFORM_MAX_PATH]; |
| 588 | libsys->GetFileFromPath(lookup, sizeof(lookup), file); |
| 589 | |
| 590 | for (iter=m_Libs.begin(); iter!=m_Libs.end(); iter++) |
| 591 | { |
| 592 | pExt = (*iter); |
| 593 | if (pExt->IsSameFile(lookup)) |
| 594 | { |
| 595 | return pExt; |
| 596 | } |
| 597 | } |
| 598 | |
| 599 | return NULL; |
| 600 | } |
| 601 | |
| 602 | IExtension *CExtensionManager::FindExtensionByName(const char *ext) |
| 603 | { |
no test coverage detected