mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
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)))
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user