From f5be1c30e57564e23eb5c12ab2432f43ad4354d0 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 2 Aug 2026 10:11:15 +0200 Subject: VideoCommon: Fix custom texture count in OSD message 83dc468 broke the OSD message that shows the number of custom textures. If Prefetch Custom Textures was disabled, the number would always be 0. --- Source/Core/VideoCommon/HiresTextures.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Source/Core/VideoCommon/HiresTextures.cpp b/Source/Core/VideoCommon/HiresTextures.cpp index 575f82be04..13a6256293 100644 --- a/Source/Core/VideoCommon/HiresTextures.cpp +++ b/Source/Core/VideoCommon/HiresTextures.cpp @@ -144,9 +144,17 @@ void HiresTexture::Update() SConfig::GetInstance().GetGameIDsForTextures(); const std::string game_id_display = fmt::format("{}", fmt::join(game_ids_for_textures, "' or '")); - const auto message = fmt::format("{} '{}' custom textures for '{}'", - g_ActiveConfig.bCacheHiresTextures ? "Preloading" : "Found", - s_hires_texture_cache.size(), game_id_display); + std::string message; + if (g_ActiveConfig.bCacheHiresTextures) + { + message = fmt::format("Preloading '{}' custom textures for '{}'", s_hires_texture_cache.size(), + game_id_display); + } + else + { + message = fmt::format("Found '{}' custom textures for '{}'", + s_hires_texture_id_to_arbmipmap.size(), game_id_display); + } OSD::AddMessage(message, 10000); } -- cgit v1.2.3