From a2c049b00b31eb29c015194bc3b6dd8fb4ac0be4 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sat, 14 Feb 2026 22:09:28 -0800 Subject: [PATCH] Prefer higher-res variants for all textures --- src/pipeline/asset_manager.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/pipeline/asset_manager.cpp b/src/pipeline/asset_manager.cpp index eab3b06a..27a43311 100644 --- a/src/pipeline/asset_manager.cpp +++ b/src/pipeline/asset_manager.cpp @@ -164,15 +164,14 @@ std::vector AssetManager::getOverlayIds() const { } std::string AssetManager::resolveLayeredPath(const std::string& normalizedPath) const { - // For character textures, pick the highest-resolution variant across overlays/base. - // Turtle/classic overlays often include low-res character skins; the base dataset may have higher-res. - auto isCharacterTexture = [&]() -> bool { - if (normalizedPath.size() < 4) return false; - if (normalizedPath.rfind("character\\", 0) != 0) return false; - return normalizedPath.compare(normalizedPath.size() - 4, 4, ".blp") == 0; + // For textures (.blp), pick the highest-resolution variant across overlays/base. + // Turtle/classic overlays can include lower-res textures; the base dataset may have higher-res. + auto isBlpTexture = [&]() -> bool { + return normalizedPath.size() >= 4 && + normalizedPath.compare(normalizedPath.size() - 4, 4, ".blp") == 0; }; - if (isCharacterTexture()) { + if (isBlpTexture()) { uint64_t bestSize = 0; std::string bestFsPath;