diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2026-08-02 14:19:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-02 14:19:09 +0200 |
| commit | 4af65cbed06816bf4626831af369d3cb3dd18675 (patch) | |
| tree | 3c5dbeefcd7e8f070867b6be54ff368493f55461 | |
| parent | 35925ceb15bfbf5a2369bf382b68d00132462ec1 (diff) | |
| parent | f5be1c30e57564e23eb5c12ab2432f43ad4354d0 (diff) | |
VideoCommon: Fix custom texture count in OSD message
| -rw-r--r-- | Source/Core/VideoCommon/HiresTextures.cpp | 14 |
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); } |
