Skip to content

Commit

Permalink
Fix icons for titles
Browse files Browse the repository at this point in the history
  • Loading branch information
XorTroll committed Nov 17, 2019
1 parent 042d015 commit 05123c2
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Common/Source/cfg/cfg_Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,13 @@ namespace cfg

std::string GetRecordIconPath(TitleRecord record)
{
std::string icon;
if((TitleType)record.title_type == TitleType::Homebrew)
std::string icon = record.icon;
if(icon.empty())
{
if(!record.icon.empty()) icon = record.icon;
else icon = GetNROCacheIconPath(record.nro_target.nro_path);
}
else
{
if(!record.icon.empty()) icon = record.icon;
else icon = GetTitleCacheIconPath(record.app_id);
if((TitleType)record.title_type == TitleType::Homebrew) icon = GetNROCacheIconPath(record.nro_target.nro_path);
else if((TitleType)record.title_type == TitleType::Installed) icon = GetTitleCacheIconPath(record.app_id);
}

return icon;
}

Expand Down

0 comments on commit 05123c2

Please sign in to comment.