mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-03 20:24:14 +02:00
Merge pull request #14785 from JosJuice/fix-texture-count
VideoCommon: Fix custom texture count in OSD message
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user