diff --git a/rpcs3/Emu/GameInfo.h b/rpcs3/Emu/GameInfo.h index dbb5c2c4b7..d9a2d67449 100644 --- a/rpcs3/Emu/GameInfo.h +++ b/rpcs3/Emu/GameInfo.h @@ -21,5 +21,5 @@ struct GameInfo u32 sound_format = 0; u32 resolution = 0; - usz size_on_disk = umax; + u64 size_on_disk = umax; }; diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index fdd3f5b90f..1f4c06bddb 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -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(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(game_size))); if (selected_item == game->info.path + game->info.icon_path) {