Fixed issue 6119.
This commit is contained in:
parent
6fe5f5a6ba
commit
507f53e226
|
@ -211,10 +211,10 @@ std::string GameListItem::GetCompany() const
|
||||||
return m_company;
|
return m_company;
|
||||||
}
|
}
|
||||||
|
|
||||||
// (-1 = Japanese, 0 = English, etc)
|
// (-1 = Japanese, 0 = English, etc)?
|
||||||
std::string GameListItem::GetDescription(int _index) const
|
std::string GameListItem::GetDescription(int _index) const
|
||||||
{
|
{
|
||||||
const u32 index = _index + 1;
|
const u32 index = _index;
|
||||||
|
|
||||||
if (index < m_descriptions.size())
|
if (index < m_descriptions.size())
|
||||||
return m_descriptions[index];
|
return m_descriptions[index];
|
||||||
|
@ -225,10 +225,10 @@ std::string GameListItem::GetDescription(int _index) const
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// (-1 = Japanese, 0 = English, etc)
|
// (-1 = Japanese, 0 = English, etc)?
|
||||||
std::string GameListItem::GetVolumeName(int _index) const
|
std::string GameListItem::GetVolumeName(int _index) const
|
||||||
{
|
{
|
||||||
u32 const index = _index + 1;
|
u32 const index = _index;
|
||||||
|
|
||||||
if (index < m_volume_names.size() && !m_volume_names[index].empty())
|
if (index < m_volume_names.size() && !m_volume_names[index].empty())
|
||||||
return m_volume_names[index];
|
return m_volume_names[index];
|
||||||
|
@ -239,10 +239,10 @@ std::string GameListItem::GetVolumeName(int _index) const
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// (-1 = Japanese, 0 = English, etc)
|
// (-1 = Japanese, 0 = English, etc)?
|
||||||
std::string GameListItem::GetBannerName(int _index) const
|
std::string GameListItem::GetBannerName(int _index) const
|
||||||
{
|
{
|
||||||
u32 const index = _index + 1;
|
u32 const index = _index;
|
||||||
|
|
||||||
if (index < m_names.size() && !m_names[index].empty())
|
if (index < m_names.size() && !m_names[index].empty())
|
||||||
return m_names[index];
|
return m_names[index];
|
||||||
|
@ -253,7 +253,7 @@ std::string GameListItem::GetBannerName(int _index) const
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// (-1 = Japanese, 0 = English, etc)
|
// (-1 = Japanese, 0 = English, etc)?
|
||||||
std::string GameListItem::GetName(int _index) const
|
std::string GameListItem::GetName(int _index) const
|
||||||
{
|
{
|
||||||
// Prefer name from banner, fallback to name from volume, fallback to filename
|
// Prefer name from banner, fallback to name from volume, fallback to filename
|
||||||
|
|
Loading…
Reference in New Issue