// resource_helper.hpp - Funciones de ajuda per gestió de recursos // © 2026 JailDesigner // API simplificada i normalització de rutes #pragma once #include #include #include namespace Resource::Helper { // Inicialización del sistema auto initializeResourceSystem(const std::string& pack_file, bool fallback) -> bool; // Càrrega de archivos auto loadFile(const std::string& filepath) -> std::vector; auto fileExists(const std::string& filepath) -> bool; // Llistat de recursos disponibles amb un prefix (ex. "shapes/", "sounds/"). auto listResources(const std::string& prefix) -> std::vector; // Normalització de rutes auto getPackPath(const std::string& asset_path) -> std::string; auto normalizePath(const std::string& path) -> std::string; // Estat auto isPackLoaded() -> bool; } // namespace Resource::Helper