the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include <vector>
4#include <unordered_map>
5
6#include "..\Minecraft.World\File.h"
7#include "..\Minecraft.World\ArrayWithLength.h"
8
9using namespace std;
10
11class ArchiveFile
12{
13protected:
14 File m_sourcefile;
15 BYTE *m_cachedData;
16
17 typedef struct _MetaData
18 {
19 wstring filename;
20 int ptr;
21 int filesize;
22 bool isCompressed;
23
24 } MetaData, *PMetaData;
25
26 unordered_map<wstring, PMetaData> m_index;
27
28public:
29 void _readHeader(DataInputStream *dis);
30
31 ArchiveFile(File file);
32 ~ArchiveFile();
33
34 vector<wstring> *getFileList();
35 bool hasFile(const wstring &filename);
36 int getFileSize(const wstring &filename);
37 byteArray getFile(const wstring &filename);
38};