summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2019-01-30 19:47:47 +0100
committerGitHub <noreply@github.com>2019-01-30 19:47:47 +0100
commit419ba925b7b28cdcf30f88fb323dd27d212dd008 (patch)
tree243b9a8c5f535c0c28db4fc0065479cf5121f842 /Source/Core
parent9340ddc7c945b06d0f5661b19c8e56d5a11a4ff6 (diff)
parentefd5c3677385ed861cd76886aae57f6dea182431 (diff)
Merge pull request #7748 from jordan-woyak/compressed-game-indicator
DolphinQt: Display game list compressed file sizes with an asterisk.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/GameList/GameListModel.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameListModel.cpp b/Source/Core/DolphinQt/GameList/GameListModel.cpp
index e7440ce1e2..d8d29e3895 100644
--- a/Source/Core/DolphinQt/GameList/GameListModel.cpp
+++ b/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;