Use homebrew icon.png to make rough but serviceable homebrew covers

This commit is contained in:
entropy 2012-01-22 04:23:45 +00:00
parent e6027ff49b
commit 0afba30306

View File

@ -1166,7 +1166,15 @@ void CMenu::_initCF(void)
if(m_gamelistdump)
m_dump.setWString(domain, id, m_gameList[i].title);
if (m_current_view != COVERFLOW_HOMEBREW)
m_cf.addItem(&m_gameList[i], sfmt("%s/%s.png", m_picDir.c_str(), id.c_str()).c_str(), sfmt("%s/%s.png", m_boxPicDir.c_str(), id.c_str()).c_str(), playcount, lastPlayed);
else {
string s = sfmt("%s", m_gameList[i].path);
string f = s.substr(0, s.find_last_of("/"));
m_cf.addItem(&m_gameList[i], sfmt("%s/icon.png", f.c_str()).c_str(), sfmt("%s/%s.png", m_boxPicDir.c_str(), id.c_str()).c_str(), playcount, lastPlayed);
}
}
}
m_gcfg1.unload();