Skip to content

Commit

Permalink
Skip leader portraits debugging (#1644)
Browse files Browse the repository at this point in the history
* Skip leader portraits debugging
Fix a portrait definition

* Clang
  • Loading branch information
cetvrtak authored Oct 10, 2023
1 parent ce8778d commit de12251
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/configurables/cultureGroupToGraphics.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,7 @@ hellenic_caucasian = {
democratic = {
"gfx/interface/ideas/idea_GRE_dimitrios_psarros.dds"
"gfx/interface/ideas/idea_GRE_eleftherios_venizelos.dds"
"gfx/interface/ideas/idea_GRE_themistoklis_sofoulis.dds"
"gfx/interface/ideas/idea_GRE_themistoklis_sofoulis.tga"
}
fascism = {
"gfx/interface/ideas/idea_GRE_charalambos_katsimitros.dds"
Expand Down
5 changes: 5 additions & 0 deletions src/Mappers/Graphics/GraphicsMapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,11 @@ void Mappers::GraphicsMapper::debugPortraits(const Configuration& theConfigurati

for (const auto& portrait: mapperPortraits)
{
if (!portrait.ends_with(".dds") && !portrait.ends_with(".tga"))
{
continue;
}

if (!portraitFiles.contains(portrait))
{
Log(LogLevel::Debug) << "Missing portrait: " << portrait;
Expand Down

0 comments on commit de12251

Please sign in to comment.