GameList: Use titles from the Title Database for shortcut creation
Makes titles consistent with Dolphin's game list
This commit is contained in:
parent
0fb8f735e5
commit
d4b7ed4e38
|
@ -685,7 +685,7 @@ bool GameList::AddShortcutToDesktop()
|
||||||
if (FAILED(SHGetKnownFolderPath(FOLDERID_Desktop, KF_FLAG_NO_ALIAS, nullptr, &desktop)))
|
if (FAILED(SHGetKnownFolderPath(FOLDERID_Desktop, KF_FLAG_NO_ALIAS, nullptr, &desktop)))
|
||||||
return false;
|
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
|
// 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(),
|
game_name.erase(std::remove_if(game_name.begin(), game_name.end(),
|
||||||
[](char ch) {
|
[](char ch) {
|
||||||
|
|
Loading…
Reference in New Issue