#ifndef __PSHAG_IOSTREAMS_HPP__ #define __PSHAG_IOSTREAMS_HPP__ #include "RetroTypes.hpp" #include #include #include #include namespace urde { using CInputStream = athena::io::IStreamReader; using COutputStream = athena::io::IStreamWriter; struct DecryptionCtx { s32 x1c_encVal; s32 x20_encShift; s32 DecryptRead(CInputStream& in, s32 key); }; using CMemoryInStream = athena::io::MemoryReader; class CZipInputStream : public CInputStream { std::unique_ptr x24_compBuf; std::unique_ptr x28_strm; z_stream x30_zstrm = {}; public: CZipInputStream(std::unique_ptr&& strm); ~CZipInputStream(); atUint64 readUBytesToBuf(void *buf, atUint64 len); void seek(atInt64, athena::SeekOrigin) {} atUint64 position() const {return 0;} atUint64 length() const {return 0;} }; } #endif // __PSHAG_IOSTREAMS_HPP__