2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 06:06:11 +00:00

Begin transitioning to new CModel/CCubeModel & friends

This commit is contained in:
2022-02-25 02:45:25 -05:00
parent c3c9f9d601
commit 832eb180bd
146 changed files with 2221 additions and 1582 deletions

View File

@@ -14,14 +14,13 @@ CZipInputStream::CZipInputStream(std::unique_ptr<CInputStream>&& strm)
CZipInputStream::~CZipInputStream() { inflateEnd(x30_zstrm.get()); }
u32 CZipInputStream::Read(void* buf, u32 len) {
x30_zstrm->next_out = static_cast<Bytef *>(buf);
x30_zstrm->next_out = static_cast<Bytef*>(buf);
x30_zstrm->avail_out = len;
if (x30_zstrm->avail_in == 0) {
x30_zstrm->avail_in = x28_strm->ReadBytes(x24_compBuf.get(),4096);
x30_zstrm->avail_in = x28_strm->ReadBytes(x24_compBuf.get(), 4096);
x30_zstrm->next_in = x24_compBuf.get();
}
inflate(x30_zstrm.get(), Z_NO_FLUSH);
return len - x30_zstrm->avail_out;
}
} // namespace metaforce
} // namespace metaforce