| 1595 | } |
| 1596 | |
| 1597 | bool ResourceMgr::LoadPack(const wchar_t* path, const char* passwd)LNOEXCEPT |
| 1598 | { |
| 1599 | try |
| 1600 | { |
| 1601 | wstring tPath = path; |
| 1602 | pathUniform(tPath.begin(), tPath.end()); |
| 1603 | for (auto& i : m_ResPackList) |
| 1604 | { |
| 1605 | if (i.GetPathLowerCase() == tPath) |
| 1606 | { |
| 1607 | LWARNING("ResourceMgr: ��Դ��'%s'�Ѽ��أ������ظ�����", path); |
| 1608 | return true; |
| 1609 | } |
| 1610 | } |
| 1611 | m_ResPackList.emplace_front(path, passwd); |
| 1612 | LINFO("ResourceMgr: ��װ����Դ��'%s'", path); |
| 1613 | return true; |
| 1614 | } |
| 1615 | catch (const bad_alloc&) |
| 1616 | { |
| 1617 | LERROR("ResourceMgr: ������Դ��ʱ�������㹻�ڴ�"); |
| 1618 | } |
| 1619 | catch (const fcyException&) |
| 1620 | { |
| 1621 | } |
| 1622 | return false; |
| 1623 | } |
| 1624 | |
| 1625 | void ResourceMgr::UnloadPack(const wchar_t* path)LNOEXCEPT |
| 1626 | { |
nothing calls this directly
no test coverage detected