This commit is contained in:
2025-10-19 22:01:31 +02:00
parent 16306f2325
commit 2b4523d644
101 changed files with 2058 additions and 1564 deletions

View File

@@ -13,17 +13,17 @@ class AssetIntegrated : public Asset {
const std::string& resource_pack_path = "resources.pack");
// Carga un archivo usando ResourceLoader como primera opción
std::vector<uint8_t> loadFile(const std::string& filename);
auto loadFile(const std::string& filename) -> std::vector<uint8_t>;
// Verifica si un archivo existe (pack o filesystem)
bool fileExists(const std::string& filename) const;
auto fileExists(const std::string& filename) const -> bool;
// Obtiene la ruta completa para archivos del sistema/config
std::string getSystemPath(const std::string& filename) const;
auto getSystemPath(const std::string& filename) const -> std::string;
private:
static bool resource_pack_enabled_;
static bool resource_pack_enabled;
// Determina si un archivo debe cargarse del pack o del filesystem
bool shouldUseResourcePack(const std::string& filepath) const;
auto shouldUseResourcePack(const std::string& filepath) const -> bool;
};