35 using SearchPathMapVPK = std::unordered_map<std::string, std::vector<std::unique_ptr<vpkpp::PackFile>>>;
52 [[nodiscard]]
static std::optional<FileSystem>
load(std::string_view gamePath,
const FileSystemOptions& options = {});
62 [[nodiscard]] std::optional<std::vector<std::byte>>
read(std::string_view filePath, std::string_view searchPath =
"GAME",
bool prioritizeVPKs =
true)
const;
64 [[nodiscard]] std::optional<std::vector<std::byte>>
readForMap(
const vpkpp::PackFile* map, std::string_view filePath, std::string_view searchPath =
"GAME",
bool prioritizeVPKs =
true)
const;
67 explicit FileSystem(std::string_view gamePath,
const FileSystemOptions& options = {});