mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 04:46:11 +00:00
move everything to minecraft subdir, switch to absolute include path
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
// 4J Stu - Implements the Java InputStream but rather than writing directly to
|
||||
// disc it writes through the save file
|
||||
|
||||
#include "../../ConsoleJavaLibs/InputOutputStream/InputStream.h"
|
||||
|
||||
#include "ConsoleSavePath.h"
|
||||
|
||||
class ConsoleSaveFile;
|
||||
class FileEntry;
|
||||
|
||||
class ConsoleSaveFileInputStream : public InputStream {
|
||||
public:
|
||||
ConsoleSaveFileInputStream(ConsoleSaveFile* saveFile,
|
||||
const ConsoleSavePath& file);
|
||||
ConsoleSaveFileInputStream(ConsoleSaveFile* saveFile, FileEntry* file);
|
||||
virtual int read();
|
||||
virtual int read(byteArray b);
|
||||
virtual int read(byteArray b, unsigned int offset, unsigned int length);
|
||||
virtual void close();
|
||||
virtual int64_t skip(int64_t n) { return n; }
|
||||
|
||||
private:
|
||||
ConsoleSaveFile* m_saveFile;
|
||||
FileEntry* m_file;
|
||||
};
|
||||
Reference in New Issue
Block a user