mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 17:04:55 +00:00
All CResLoader methods in-place
This commit is contained in:
34
Runtime/IOStreams.hpp
Normal file
34
Runtime/IOStreams.hpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef __RETRO_IOSTREAMS_HPP__
|
||||
#define __RETRO_IOSTREAMS_HPP__
|
||||
|
||||
#include "RetroTypes.hpp"
|
||||
#include <Athena/IStreamReader.hpp>
|
||||
#include <Athena/IStreamWriter.hpp>
|
||||
#include <Athena/MemoryReader.hpp>
|
||||
#include <zlib.h>
|
||||
|
||||
namespace Retro
|
||||
{
|
||||
|
||||
using CInputStream = Athena::io::IStreamReader;
|
||||
using COutputStream = Athena::io::IStreamWriter;
|
||||
|
||||
using CMemoryInStream = Athena::io::MemoryReader;
|
||||
|
||||
class CZipInputStream : public CInputStream
|
||||
{
|
||||
std::unique_ptr<u8[]> x24_compBuf;
|
||||
std::unique_ptr<CInputStream> x28_strm;
|
||||
z_stream x30_zstrm = {};
|
||||
public:
|
||||
CZipInputStream(std::unique_ptr<CInputStream>&& strm);
|
||||
~CZipInputStream();
|
||||
atUint64 readUBytesToBuf(void *buf, atUint64 len);
|
||||
void seek(atInt64, Athena::SeekOrigin) {}
|
||||
atUint64 position() const {return 0;}
|
||||
atUint64 length() const {return 0;}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // __RETRO_IOSTREAMS_HPP__
|
||||
Reference in New Issue
Block a user