Merge pull request #14785 from JosJuice/fix-texture-count

VideoCommon: Fix custom texture count in OSD message
This commit is contained in:
Admiral H. Curtiss
2026-08-02 14:19:09 +02:00
committed by GitHub
+11 -3
View File
@@ -144,9 +144,17 @@ void HiresTexture::Update()
SConfig::GetInstance().GetGameIDsForTextures(); SConfig::GetInstance().GetGameIDsForTextures();
const std::string game_id_display = fmt::format("{}", fmt::join(game_ids_for_textures, "' or '")); const std::string game_id_display = fmt::format("{}", fmt::join(game_ids_for_textures, "' or '"));
const auto message = fmt::format("{} '{}' custom textures for '{}'", std::string message;
g_ActiveConfig.bCacheHiresTextures ? "Preloading" : "Found", if (g_ActiveConfig.bCacheHiresTextures)
s_hires_texture_cache.size(), game_id_display); {
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); OSD::AddMessage(message, 10000);
} }