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

Fix reading/writing saves

This commit is contained in:
2022-03-22 01:37:10 -07:00
parent e4715a2df6
commit 64e662069d
8 changed files with 64 additions and 74 deletions

View File

@@ -7,15 +7,15 @@
#include <zlib.h>
namespace metaforce {
class CZipInputStream : public CInputStream {
class CZipInputStream final : public CInputStream {
std::unique_ptr<u8[]> x24_compBuf;
std::unique_ptr<CInputStream> x28_strm;
std::unique_ptr<z_stream> x30_zstrm = {};
u32 Read(void* ptr, u32 len) override;
public:
explicit CZipInputStream(std::unique_ptr<CInputStream>&& strm);
~CZipInputStream() override;
u32 Read(void* ptr, u32 len) override;
};
} // namespace metaforce