| 1623 | } |
| 1624 | |
| 1625 | void ResourceMgr::UnloadPack(const wchar_t* path)LNOEXCEPT |
| 1626 | { |
| 1627 | try |
| 1628 | { |
| 1629 | wstring tPath = path; |
| 1630 | pathUniform(tPath.begin(), tPath.end()); |
| 1631 | for (auto& i = m_ResPackList.begin(); i != m_ResPackList.end(); ++i) |
| 1632 | { |
| 1633 | if (i->GetPathLowerCase() == tPath) |
| 1634 | { |
| 1635 | m_ResPackList.erase(i); |
| 1636 | LINFO("ResourceMgr: ��ж����Դ��'%s'", path); |
| 1637 | return; |
| 1638 | } |
| 1639 | } |
| 1640 | LWARNING("ResourceMgr: ��Դ��'%s'δ���أ���ж��", path); |
| 1641 | } |
| 1642 | catch (const bad_alloc&) |
| 1643 | { |
| 1644 | LERROR("ResourceMgr: ж����Դ��ʱ�������㹻�ڴ�"); |
| 1645 | } |
| 1646 | } |
| 1647 | |
| 1648 | LNOINLINE bool ResourceMgr::LoadPack(const char* path, const char* passwd)LNOEXCEPT |
| 1649 | { |
nothing calls this directly
no test coverage detected