Files
coffee-crisis/source/core/resources/resource_helper.h
T

16 lines
495 B
C++

#pragma once
#include <cstdint>
#include <string>
#include <vector>
namespace ResourceHelper {
auto initializeResourceSystem(const std::string& pack_file = "resources.pack", bool enable_fallback = true) -> bool;
void shutdownResourceSystem();
auto loadFile(const std::string& filepath) -> std::vector<uint8_t>;
auto shouldUseResourcePack(const std::string& filepath) -> bool;
auto getPackPath(const std::string& asset_path) -> std::string;
} // namespace ResourceHelper