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

@@ -567,7 +567,7 @@ void Resource::createPlayerTextures() {
texture->setPaletteColor(0, 19, param.player.default_shirt[player_idx].light.TO_UINT32());
texture->setPaletteColor(0, 56, param.player.outline_color[player_idx].TO_UINT32());
} else {
// Crear textura nueva desde archivo
// Crear textura nueva desde archivo usando ResourceHelper
texture = std::make_shared<Texture>(Screen::get()->getRenderer(), texture_file_path);
// Añadir todas las paletas