game_list: append filename after program ID

This commit is contained in:
zhupengfei 2018-05-23 21:36:10 +08:00
parent 3b18faa163
commit e5c8b9f0a2
No known key found for this signature in database
GPG key ID: 85B82A3E62174206

View file

@ -182,8 +182,9 @@ public:
.replace("\\", "\\\\"));
if (installed_system_pattern.exactMatch(QString::fromStdString(path))) {
// Use a different mechanism for system / installed titles showing program ID
second_name =
"000" + QString::number(data(ProgramIdRole).toULongLong(), 16).toUpper();
second_name = "000" +
QString::number(data(ProgramIdRole).toULongLong(), 16).toUpper() +
"-" + QString::fromStdString(filename);
}
return title + (title.isEmpty() ? "" : "\n ") + second_name;
} else {