afegit resources.pack y prefixe a les rutes de recursos

This commit is contained in:
JailDesigner committed 2025-12-08 21:48:52 +01:00
1 parent 4b7cbd88bb
commit a41e696b69
21 files changed
+1066 -36

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
// resource_helper.hpp - Funcions d'ajuda per gestió de recursos
// © 2025 Port a C++20 amb SDL3
// API simplificada i normalització de rutes
#pragma once
#include <string>
#include <vector>
namespace Resource {
namespace Helper {
// Inicialització del sistema
bool initializeResourceSystem(const std::string& pack_file, bool fallback);
// Càrrega de fitxers
std::vector<uint8_t> loadFile(const std::string& filepath);
bool fileExists(const std::string& filepath);
// Normalització de rutes
std::string getPackPath(const std::string& asset_path);
std::string normalizePath(const std::string& path);
// Estat
bool isPackLoaded();
} // namespace Helper
} // namespace Resource