summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2026-08-02 10:11:15 +0200
committerJosJuice <josjuice@gmail.com>2026-08-02 10:11:15 +0200
commitf5be1c30e57564e23eb5c12ab2432f43ad4354d0 (patch)
tree3c5dbeefcd7e8f070867b6be54ff368493f55461
parent35925ceb15bfbf5a2369bf382b68d00132462ec1 (diff)
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.
-rw-r--r--Source/Core/VideoCommon/HiresTextures.cpp14
1 files 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);
}