mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-26 18:41:31 +00:00
Merge pull request #8014 from JosJuice/getuniqueidentifier-language-independent
Make GameFile::GetUniqueIdentifier independent of language setting
This commit is contained in:
commit
ef88dd73b3
@ -468,7 +468,12 @@ std::string GameFile::GetUniqueIdentifier() const
|
|||||||
if (GetRevision() != 0)
|
if (GetRevision() != 0)
|
||||||
info.push_back("Revision " + std::to_string(GetRevision()));
|
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;
|
int disc_number = GetDiscNumber() + 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user