faltaven mes integracions de texture amb ResourceHelper

This commit is contained in:
2025-08-19 13:22:38 +02:00
parent 58cf78e1e3
commit 43788bb01a
3 changed files with 29 additions and 16 deletions

View File

@@ -2,6 +2,7 @@
#include <filesystem>
#include <fstream>
#include <iostream>
#include <algorithm>
namespace ResourceHelper {
static bool resource_system_initialized = false;
@@ -74,6 +75,9 @@ namespace ResourceHelper {
std::string getPackPath(const std::string& asset_path) {
std::string pack_path = asset_path;
// Normalizar separadores de path a '/'
std::replace(pack_path.begin(), pack_path.end(), '\\', '/');
// Remover prefijo "data/" si existe
size_t data_pos = pack_path.find("data/");
if (data_pos != std::string::npos) {