mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-06 00:40:11 +00:00
Qt: fix size_on_disk filetype
This commit is contained in:
parent
ee8cd82e9d
commit
6c74274502
@ -21,5 +21,5 @@ struct GameInfo
|
||||
u32 sound_format = 0;
|
||||
u32 resolution = 0;
|
||||
|
||||
usz size_on_disk = umax;
|
||||
u64 size_on_disk = umax;
|
||||
};
|
||||
|
@ -2586,7 +2586,7 @@ void game_list_frame::PopulateGameList()
|
||||
}
|
||||
}
|
||||
|
||||
const usz game_size = game->info.size_on_disk;
|
||||
const u64 game_size = game->info.size_on_disk;
|
||||
|
||||
m_game_list->setItem(row, gui::column_icon, icon_item);
|
||||
m_game_list->setItem(row, gui::column_name, title_item);
|
||||
@ -2602,7 +2602,7 @@ void game_list_frame::PopulateGameList()
|
||||
m_game_list->setItem(row, gui::column_last_play, new custom_table_widget_item(locale.toString(last_played, last_played >= QDateTime::currentDateTime().addDays(-7) ? gui::persistent::last_played_date_with_time_of_day_format : gui::persistent::last_played_date_format_new), Qt::UserRole, last_played));
|
||||
m_game_list->setItem(row, gui::column_playtime, new custom_table_widget_item(elapsed_ms == 0 ? tr("Never played") : localized.GetVerboseTimeByMs(elapsed_ms), Qt::UserRole, elapsed_ms));
|
||||
m_game_list->setItem(row, gui::column_compat, compat_item);
|
||||
m_game_list->setItem(row, gui::column_dir_size, new custom_table_widget_item(game_size != umax ? gui::utils::format_byte_size(game_size) : tr("Unknown"), Qt::UserRole, QVariant::fromValue<usz>(game_size)));
|
||||
m_game_list->setItem(row, gui::column_dir_size, new custom_table_widget_item(game_size != umax ? gui::utils::format_byte_size(game_size) : tr("Unknown"), Qt::UserRole, QVariant::fromValue<qulonglong>(game_size)));
|
||||
|
||||
if (selected_item == game->info.path + game->info.icon_path)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user