mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-29 05:11:52 +01:00
-added missing age lock check for gc games in gametdb
This commit is contained in:
parent
7024dbd621
commit
991ed5d628
@ -1688,15 +1688,15 @@ void CMenu::_initCF(void)
|
|||||||
id.append("_2");
|
id.append("_2");
|
||||||
}
|
}
|
||||||
bool ageLocked = false;
|
bool ageLocked = false;
|
||||||
if (ageLock < 19)
|
if(ageLock < 19)
|
||||||
{
|
{
|
||||||
int ageRated = min(max(gameAgeList.getInt(domain, id), 0), 19);
|
int ageRated = min(max(gameAgeList.getInt(domain, id), 0), 19);
|
||||||
if(ageRated == 0 && gametdb.IsLoaded() && (element->type == TYPE_WII_GAME || element->type == TYPE_CHANNEL))
|
if(ageRated == 0 && gametdb.IsLoaded() && (element->type == TYPE_WII_GAME || element->type == TYPE_GC_GAME || element->type == TYPE_CHANNEL))
|
||||||
{
|
{
|
||||||
const char *RatingValue = NULL;
|
const char *RatingValue = NULL;
|
||||||
if(gametdb.GetRatingValue(id.c_str(), RatingValue))
|
if(gametdb.GetRatingValue(element->id, RatingValue))
|
||||||
{
|
{
|
||||||
switch(gametdb.GetRating(id.c_str()))
|
switch(gametdb.GetRating(element->id))
|
||||||
{
|
{
|
||||||
case GAMETDB_RATING_TYPE_CERO:
|
case GAMETDB_RATING_TYPE_CERO:
|
||||||
if(RatingValue[0] == 'A')
|
if(RatingValue[0] == 'A')
|
||||||
@ -1910,7 +1910,7 @@ void CMenu::_initCF(void)
|
|||||||
else if(element->type == TYPE_HOMEBREW)
|
else if(element->type == TYPE_HOMEBREW)
|
||||||
CoverFlow.addItem(&(*element), fmt("%s/icon.png", element->path), fmt("%s/%s.png", m_boxPicDir.c_str(), id.c_str()), fmt("%s/%s", m_boxPicDir.c_str(), blankCoverName.c_str()), playcount, lastPlayed);
|
CoverFlow.addItem(&(*element), fmt("%s/icon.png", element->path), fmt("%s/%s.png", m_boxPicDir.c_str(), id.c_str()), fmt("%s/%s", m_boxPicDir.c_str(), blankCoverName.c_str()), playcount, lastPlayed);
|
||||||
else
|
else
|
||||||
CoverFlow.addItem(&(*element), fmt("%s/%s.png", m_picDir.c_str(), id.c_str()), fmt("%s/%s.png", m_boxPicDir.c_str(), id.c_str()), fmt("%s/%s", m_boxPicDir.c_str(), blankCoverName.c_str()), playcount, lastPlayed);
|
CoverFlow.addItem(&(*element), fmt("%s/%s.png", m_picDir.c_str(), element->id), fmt("%s/%s.png", m_boxPicDir.c_str(), element->id), fmt("%s/%s", m_boxPicDir.c_str(), blankCoverName.c_str()), playcount, lastPlayed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(gametdb.IsLoaded())
|
if(gametdb.IsLoaded())
|
||||||
|
Loading…
Reference in New Issue
Block a user