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

Method LoadPack

LuaSTGPlus/ResourceMgr.cpp:1597–1623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1595}
1596
1597bool 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
1625void ResourceMgr::UnloadPack(const wchar_t* path)LNOEXCEPT
1626{

Callers

nothing calls this directly

Calls 1

pathUniformFunction · 0.85

Tested by

no test coverage detected