mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue