This commit is contained in:
2025-11-19 20:43:20 +01:00
parent 35ef99cf7c
commit 5337e3b4e5
8 changed files with 112 additions and 47 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ namespace Resource {
// Entry metadata for each resource in the pack
struct ResourceEntry {
std::string filename{}; // Relative path within pack
std::string filename; // Relative path within pack
uint64_t offset{0}; // Byte offset in data block
uint64_t size{0}; // Size in bytes
uint32_t checksum{0}; // CRC32 checksum for verification
@@ -60,8 +60,8 @@ class Pack {
static auto readFile(const std::string& filepath) -> std::vector<uint8_t>; // File I/O
std::unordered_map<std::string, ResourceEntry> resources_{}; // Member variables
std::vector<uint8_t> data_{}; // Encrypted data block
std::unordered_map<std::string, ResourceEntry> resources_; // Member variables
std::vector<uint8_t> data_; // Encrypted data block
bool loaded_{false};
};