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

Method ResourcePack

LuaSTGPlus/ResourceMgr.cpp:1487–1501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1485}
1486
1487ResourcePack::ResourcePack(const wchar_t* path, const char* passwd)
1488 : m_Path(path), m_PathLowerCase(path), m_Password(passwd ? passwd : "")
1489{
1490 pathUniform(m_PathLowerCase.begin(), m_PathLowerCase.end());
1491
1492 zlib_filefunc64_def tZlibFileFunc;
1493 memset(&tZlibFileFunc, 0, sizeof(tZlibFileFunc));
1494 fill_wfopen64_filefunc(&tZlibFileFunc);
1495 m_zipFile = unzOpen2_64(reinterpret_cast<const char*>(path), &tZlibFileFunc);
1496 if (!m_zipFile)
1497 {
1498 LERROR("ResourcePack: �޷�����Դ��'%s' (unzOpenʧ��)", path);
1499 throw fcyException("ResourcePack::ResourcePack", "Can't open resource pack.");
1500 }
1501}
1502
1503ResourcePack::~ResourcePack()
1504{

Callers

nothing calls this directly

Calls 3

pathUniformFunction · 0.85
fill_wfopen64_filefuncFunction · 0.85
unzOpen2_64Function · 0.85

Tested by

no test coverage detected