the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2// 4J Stu - Implements the Java InputStream but rather than writing directly to disc it writes through the save file
3
4#include "InputStream.h"
5
6#include "ConsoleSavePath.h"
7
8class ConsoleSaveFile;
9class FileEntry;
10
11class ConsoleSaveFileInputStream : public InputStream
12{
13public:
14 ConsoleSaveFileInputStream(ConsoleSaveFile *saveFile, const ConsoleSavePath &file);
15 ConsoleSaveFileInputStream(ConsoleSaveFile *saveFile, FileEntry *file);
16 virtual int read();
17 virtual int read(byteArray b);
18 virtual int read(byteArray b, unsigned int offset, unsigned int length);
19 virtual void close();
20 virtual __int64 skip(__int64 n) { return n; }
21
22private:
23 ConsoleSaveFile *m_saveFile;
24 FileEntry *m_file;
25
26};