#pragma once
#include
#include
#include
namespace lightningbolt {
struct BoltReader {
struct File {
std::string_view filename;
u16 index;
u16 gid;
bool compressed;
u8* uncompressedData { nullptr };
usize uncompressedSize;
};
BoltReader();
~BoltReader();
ErrorOr OpenBolt(const fs::path& path);
void ForEachFile(std::function f);
private:
struct Impl;
Unique impl;
};
} // namespace lightningbolt