New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qt: Show disc number #6751
Qt: Show disc number #6751
Conversation
|
I'd suggest that you only add the extra text if the name doesn't already contain the disc number, like in DolphinWX: dolphin/Source/Core/UICommon/GameFile.cpp Lines 270 to 271 in 76e1a5b
|
|
@JosJuice Is this reliable though? |
|
I don't know if it covers every single game in every single language, but it seems to have worked out well enough in DolphinWX. |
0635211
to
f57d9bd
Compare
| { | ||
| if (!name.contains(QRegExp(QStringLiteral("disc ?%1").arg(disc_nr), Qt::CaseInsensitive))) | ||
| { | ||
| name.append(game.GetDiscNumber() != 0 ? tr(" (Disc %1)").arg(disc_nr) : |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| { | ||
| QString name = QString::fromStdString(game.GetName()); | ||
| const int disc_nr = game.GetDiscNumber() + 1; | ||
| if (game.GetDiscNumber() != 0) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.

No description provided.