1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

WiP on zip serialization

(-) still not works correctly
This commit is contained in:
AlexVinS
2015-08-14 00:16:31 +03:00
committed by AlexVinS
parent fc2cbc841a
commit 0cc7213a27
7 changed files with 93 additions and 38 deletions

View File

@ -15,7 +15,7 @@
CMemoryBuffer::CMemoryBuffer():
position(0)
{
buffer.reserve(4096);
}
si64 CMemoryBuffer::write(const ui8 * data, si64 size)
@ -48,7 +48,7 @@ si64 CMemoryBuffer::read(ui8 * data, si64 size)
si64 CMemoryBuffer::seek(si64 position)
{
this->position = position;
if (this->position >=getSize())
if (this->position >getSize())
this->position = getSize();
return this->position;
}