GameList: Use titles from the Title Database for shortcut creation

Makes titles consistent with Dolphin's game list
This commit is contained in:
Silent 2021-03-27 17:03:17 +01:00
parent 0fb8f735e5
commit d4b7ed4e38
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1

View File

@ -685,7 +685,7 @@ bool GameList::AddShortcutToDesktop()
if (FAILED(SHGetKnownFolderPath(FOLDERID_Desktop, KF_FLAG_NO_ALIAS, nullptr, &desktop)))
return false;
std::string game_name = game->GetLongName();
std::string game_name = game->GetName(Core::TitleDatabase());
// Sanitize the string by removing all characters that cannot be used in NTFS file names
game_name.erase(std::remove_if(game_name.begin(), game_name.end(),
[](char ch) {