Merge pull request #8014 from JosJuice/getuniqueidentifier-language-independent

Make GameFile::GetUniqueIdentifier independent of language setting
This commit is contained in:
Léo Lam 2019-05-01 17:34:01 +02:00 committed by GitHub
commit ef88dd73b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -468,7 +468,12 @@ std::string GameFile::GetUniqueIdentifier() const
if (GetRevision() != 0)
info.push_back("Revision " + std::to_string(GetRevision()));
const std::string& name = GetName();
std::string name = GetLongName(DiscIO::Language::English);
if (name.empty())
{
// Use the file name as a fallback. Not necessarily consistent, but it's the best we have
name = m_file_name;
}
int disc_number = GetDiscNumber() + 1;