Make GameFile::GetUniqueIdentifier independent of language setting

My bad.

We need this in the situation where two users are using different
languages and the game has a different name in each language.
This commit is contained in:
JosJuice 2019-04-20 12:38:40 +02:00
parent 861472efdf
commit 3bef561e5d

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;