mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 01:22:37 -06:00
game_list: fix system title display
This commit is contained in:
parent
8e02c70e82
commit
cb52033133
1 changed files with 9 additions and 3 deletions
|
@ -173,14 +173,20 @@ public:
|
||||||
&extension);
|
&extension);
|
||||||
QString title = data(TitleRole).toString();
|
QString title = data(TitleRole).toString();
|
||||||
QString second_name = QString::fromStdString(filename + extension);
|
QString second_name = QString::fromStdString(filename + extension);
|
||||||
static QRegExp installed_system_pattern(
|
static QRegExp installed_pattern(
|
||||||
QString::fromStdString(
|
QString::fromStdString(
|
||||||
FileUtil::GetUserPath(D_SDMC_IDX) +
|
FileUtil::GetUserPath(D_SDMC_IDX) +
|
||||||
"Nintendo "
|
"Nintendo "
|
||||||
"3DS/00000000000000000000000000000000/00000000000000000000000000000000/"
|
"3DS/00000000000000000000000000000000/00000000000000000000000000000000/"
|
||||||
"title/000400(0|1)0/[0-9a-f]{8}/content/")
|
"title/0004000(0|e)/[0-9a-f]{8}/content/")
|
||||||
.replace("\\", "\\\\"));
|
.replace("\\", "\\\\"));
|
||||||
if (installed_system_pattern.exactMatch(QString::fromStdString(path))) {
|
static QRegExp system_pattern(
|
||||||
|
QString::fromStdString(FileUtil::GetUserPath(D_NAND_IDX) +
|
||||||
|
"00000000000000000000000000000000/"
|
||||||
|
"title/00040010/[0-9a-f]{8}/content/")
|
||||||
|
.replace("\\", "\\\\"));
|
||||||
|
if (installed_pattern.exactMatch(QString::fromStdString(path)) ||
|
||||||
|
system_pattern.exactMatch(QString::fromStdString(path))) {
|
||||||
// Use a different mechanism for system / installed titles showing program ID
|
// Use a different mechanism for system / installed titles showing program ID
|
||||||
second_name = QString("%1-%2")
|
second_name = QString("%1-%2")
|
||||||
.arg(data(ProgramIdRole).toULongLong(), 16, 16, QChar('0'))
|
.arg(data(ProgramIdRole).toULongLong(), 16, 16, QChar('0'))
|
||||||
|
|
Loading…
Reference in a new issue