Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
666 B · 38 lines
C
at main
1234567891011121314151617181920212223242526272829303132333435363738#pragma once
#include <vector>#include <unordered_map>
#include "..\Minecraft.World\File.h"#include "..\Minecraft.World\ArrayWithLength.h"
using namespace std;
class ArchiveFile{protected: File m_sourcefile; BYTE *m_cachedData;
typedef struct _MetaData { wstring filename; int ptr; int filesize; bool isCompressed;
} MetaData, *PMetaData; unordered_map<wstring, PMetaData> m_index; public: void _readHeader(DataInputStream *dis);
ArchiveFile(File file); ~ArchiveFile();
vector<wstring> *getFileList(); bool hasFile(const wstring &filename); int getFileSize(const wstring &filename); byteArray getFile(const wstring &filename);};