Skip to content
Permalink
Browse files

Merge pull request #7748 from jordan-woyak/compressed-game-indicator

DolphinQt: Display game list compressed file sizes with an asterisk.
  • Loading branch information...
JosJuice committed Jan 30, 2019
2 parents 9340ddc + efd5c36 commit 419ba925b7b28cdcf30f88fb323dd27d212dd008
Showing with 9 additions and 1 deletion.
  1. +9 −1 Source/Core/DolphinQt/GameList/GameListModel.cpp
@@ -135,7 +135,15 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
break;
case COL_SIZE:
if (role == Qt::DisplayRole)
return QString::fromStdString(UICommon::FormatSize(game.GetFileSize()));
{
std::string str = UICommon::FormatSize(game.GetFileSize());

// Add asterisk to size of compressed files.
if (game.GetFileSize() != game.GetVolumeSize())
str += '*';

return QString::fromStdString(str);
}
if (role == Qt::InitialSortOrderRole)
return static_cast<quint64>(game.GetFileSize());
break;

0 comments on commit 419ba92

Please sign in to comment.
You can’t perform that action at this time.