| 1485 | } |
| 1486 | |
| 1487 | ResourcePack::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 | |
| 1503 | ResourcePack::~ResourcePack() |
| 1504 | { |
nothing calls this directly
no test coverage detected