MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / UnloadPack

Method UnloadPack

LuaSTGPlus/ResourceMgr.cpp:1625–1646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1623}
1624
1625void 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
1648LNOINLINE bool ResourceMgr::LoadPack(const char* path, const char* passwd)LNOEXCEPT
1649{

Callers

nothing calls this directly

Calls 1

pathUniformFunction · 0.85

Tested by

no test coverage detected