1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-17 05:15:29 +00:00

Update ttvfs to current HEAD

This commit is contained in:
fgenesis 2013-06-24 19:54:25 +02:00
parent 1897329071
commit 9d2dcc2d0f
5 changed files with 44 additions and 97 deletions

View file

@ -163,9 +163,9 @@ const void *VFSFileZip::getBuf(allocator_func alloc /* = NULL */, delete_func de
_delfunc = del;
if(!zip_reader_reopen_vfsfile(_zip, 0))
return false; // can happen if the underlying zip file was deleted
return NULL; // can happen if the underlying zip file was deleted
if(!mz_zip_reader_extract_to_mem(_zip, _zipstat.m_file_index, _buf, sz, 0))
return false; // this should not happen
return NULL; // this should not happen
if(_mode.find("b") == std::string::npos) // text mode?
{