#pragma once #include #include #include #include "../Minecraft.World/ArrayWithLength.h" using namespace std; class FolderFile { private: wstring m_folderPath; unordered_map m_filePaths; // filename -> full path void _buildFileIndex(); void _buildFileIndexRecursive(const wstring& currentPath, const wstring& relativePath); public: FolderFile(wstring folderPath); ~FolderFile(); vector* getFileList(); bool hasFile(const wstring &filename); int getFileSize(const wstring &filename); byteArray getFile(const wstring &filename); };