From efd5c3677385ed861cd76886aae57f6dea182431 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sat, 26 Jan 2019 20:22:51 -0600 Subject: [PATCH] DolphinQt: Display game list file sizes with an asterisk when file-size differs from volume-size (e.g. when they are compressed). --- Source/Core/DolphinQt/GameList/GameListModel.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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(game.GetFileSize()); break;