mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-13 15:38:26 +00:00
chore: format Minecraft.Client
This commit is contained in:
@@ -7,33 +7,29 @@
|
||||
#include "../../Minecraft.World/IO/Files/File.h"
|
||||
#include "../../Minecraft.World/Util/ArrayWithLength.h"
|
||||
|
||||
|
||||
|
||||
class ArchiveFile
|
||||
{
|
||||
class ArchiveFile {
|
||||
protected:
|
||||
File m_sourcefile;
|
||||
std::uint8_t *m_cachedData;
|
||||
File m_sourcefile;
|
||||
std::uint8_t* m_cachedData;
|
||||
|
||||
typedef struct _MetaData
|
||||
{
|
||||
std::wstring filename;
|
||||
int ptr;
|
||||
int filesize;
|
||||
bool isCompressed;
|
||||
typedef struct _MetaData {
|
||||
std::wstring filename;
|
||||
int ptr;
|
||||
int filesize;
|
||||
bool isCompressed;
|
||||
|
||||
} MetaData, *PMetaData;
|
||||
|
||||
std::unordered_map<std::wstring, PMetaData> m_index;
|
||||
|
||||
} MetaData, *PMetaData;
|
||||
|
||||
std::unordered_map<std::wstring, PMetaData> m_index;
|
||||
|
||||
public:
|
||||
void _readHeader(DataInputStream *dis);
|
||||
void _readHeader(DataInputStream* dis);
|
||||
|
||||
ArchiveFile(File file);
|
||||
~ArchiveFile();
|
||||
ArchiveFile(File file);
|
||||
~ArchiveFile();
|
||||
|
||||
std::vector<std::wstring> *getFileList();
|
||||
bool hasFile(const std::wstring &filename);
|
||||
int getFileSize(const std::wstring &filename);
|
||||
byteArray getFile(const std::wstring &filename);
|
||||
std::vector<std::wstring>* getFileList();
|
||||
bool hasFile(const std::wstring& filename);
|
||||
int getFileSize(const std::wstring& filename);
|
||||
byteArray getFile(const std::wstring& filename);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user