From f3ab974bc69a32e410eee3b4cca09fa5f3865215 Mon Sep 17 00:00:00 2001 From: Michael M Date: Sun, 20 Aug 2017 13:36:29 -0700 Subject: [PATCH 1/2] GameListModel: fallback to file name if long name is empty --- Source/Core/DolphinQt2/GameList/GameListModel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/GameList/GameListModel.cpp b/Source/Core/DolphinQt2/GameList/GameListModel.cpp index 860fbbe9d0..9b12f4f2d5 100644 --- a/Source/Core/DolphinQt2/GameList/GameListModel.cpp +++ b/Source/Core/DolphinQt2/GameList/GameListModel.cpp @@ -73,7 +73,10 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const Core::TitleDatabase::TitleType::Channel : Core::TitleDatabase::TitleType::Other)); if (display_name.isEmpty()) - return game->GetLongName(); + display_name = game->GetLongName(); + + if (display_name.isEmpty()) + display_name = game->GetFileName(); return display_name; } From 1a59ea3adb7845c693520ea64e61164577e5eacc Mon Sep 17 00:00:00 2001 From: Michael M Date: Sun, 20 Aug 2017 13:36:53 -0700 Subject: [PATCH 2/2] GameFile: don't assign English long name for ELF/DOLs --- Source/Core/DolphinQt2/GameList/GameFile.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/Core/DolphinQt2/GameList/GameFile.cpp b/Source/Core/DolphinQt2/GameList/GameFile.cpp index 394b8b81a7..9797dcb31a 100644 --- a/Source/Core/DolphinQt2/GameList/GameFile.cpp +++ b/Source/Core/DolphinQt2/GameList/GameFile.cpp @@ -192,7 +192,6 @@ bool GameFile::TryLoadElfDol() return false; m_revision = 0; - m_long_names[DiscIO::Language::LANGUAGE_ENGLISH] = m_file_name; m_platform = DiscIO::Platform::ELF_DOL; m_region = DiscIO::Region::UNKNOWN_REGION; m_country = DiscIO::Country::COUNTRY_UNKNOWN;