1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Start implementing map saver

This commit is contained in:
AlexVinS
2015-08-11 21:20:13 +03:00
committed by AlexVinS
parent 0040b459c3
commit 1a8faeb0b9
12 changed files with 226 additions and 23 deletions

View File

@@ -1,5 +1,4 @@
#include "StdInc.h"
#include "../../Global.h"
#include "CZipLoader.h"
#include "../ScopeGuard.h"
@@ -14,6 +13,7 @@
*
*/
///CZipStream
CZipStream::CZipStream(std::shared_ptr<CIOApi> api, const std::string & archive, unz_file_pos filepos)
{
zlib_filefunc64_def zlibApi;
@@ -50,6 +50,7 @@ ui32 CZipStream::calculateCRC32()
return info.crc;
}
///CZipLoader
CZipLoader::CZipLoader(const std::string & mountPoint, const std::string & archive, std::shared_ptr<CIOApi> api):
ioApi(api),
zlibApi(ioApi->getApiStructure()),