GameList: Use title name based on console language (#388)

This commit is contained in:
MythicalPlayz 2022-10-21 00:17:11 +02:00 committed by GitHub
parent dd1cb1cccf
commit c217b3ee32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 2 deletions

View file

@ -705,7 +705,13 @@ namespace CafeSystem
{
if (sLaunchModeIsStandalone)
return "Unknown Game";
return sGameInfo_ForegroundTitle.GetBase().GetMetaInfo()->GetShortName(GetConfig().console_language);
std::string applicationName;
applicationName = sGameInfo_ForegroundTitle.GetBase().GetMetaInfo()->GetShortName(GetConfig().console_language);
if (applicationName.empty()) //Try to get the English Title
applicationName = sGameInfo_ForegroundTitle.GetBase().GetMetaInfo()->GetShortName(CafeConsoleLanguage::EN);
if (applicationName.empty()) //Unknown Game
applicationName = "Unknown Game";
return applicationName;
}
std::string GetForegroundTitleArgStr()