Separate banner and volume name getting functions. Game properties now shows the correct "banner" name in more cases.

This commit is contained in:
Jordan Woyak
2013-03-03 18:29:56 -06:00
parent a30636cb88
commit 6026b29844
4 changed files with 54 additions and 31 deletions

View File

@ -1301,28 +1301,25 @@ void CISOProperties::OnChangeBannerLang(wxCommandEvent& event)
void CISOProperties::ChangeBannerDetails(int lang)
{
std::string name;
wxString shortName,
comment,
maker;
// why?
switch (OpenGameListItem->GetCountry())
{
case DiscIO::IVolume::COUNTRY_TAIWAN:
case DiscIO::IVolume::COUNTRY_JAPAN:
shortName = StrToWxStr(OpenGameListItem->GetName(-1));
comment = StrToWxStr(OpenGameListItem->GetDescription());
lang = -1;
break;
case DiscIO::IVolume::COUNTRY_USA:
// why?
lang = 0;
break;
default:
shortName = StrToWxStr(OpenGameListItem->GetName(lang));
comment = StrToWxStr(OpenGameListItem->GetDescription(lang));
break;
}
maker = StrToWxStr(OpenGameListItem->GetCompany());
wxString const shortName = StrToWxStr(OpenGameListItem->GetBannerName(lang));
wxString const comment = StrToWxStr(OpenGameListItem->GetDescription(lang));
wxString const maker = StrToWxStr(OpenGameListItem->GetCompany());
// Updates the informations shown in the window
m_ShortName->SetValue(shortName);