From bc1d0b9e6548c09d1f0d612d894146dc3604bbe1 Mon Sep 17 00:00:00 2001 From: Functionable <40835042+Functionable@users.noreply.github.com> Date: Wed, 7 Jan 2026 18:51:01 +0000 Subject: [PATCH] ISO: Move game size assignment to size_calc_func in game_list_table.cpp --- rpcs3/rpcs3qt/game_list_frame.cpp | 8 -------- rpcs3/rpcs3qt/game_list_table.cpp | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index 34aa4147f2..35790c016f 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -538,14 +538,6 @@ void game_list_frame::OnParsingFinished() gui_game_info game{}; game.info.path = dir_or_elf; - if (archive) - { - fs::stat_t iso_stat; - fs::get_stat(game.info.path, iso_stat); - - game.info.size_on_disk = iso_stat.size; - } - const Localized thread_localized; const std::string sfo_dir = !archive ? rpcs3::utils::get_sfo_dir_from_game_path(dir_or_elf) : "PS3_GAME"; diff --git a/rpcs3/rpcs3qt/game_list_table.cpp b/rpcs3/rpcs3qt/game_list_table.cpp index a91141eb57..2ab2013b19 100644 --- a/rpcs3/rpcs3qt/game_list_table.cpp +++ b/rpcs3/rpcs3qt/game_list_table.cpp @@ -285,6 +285,13 @@ void game_list_table::populate( // Do not report size of apps inside /dev_flash (it does not make sense to do so) game->info.size_on_disk = 0; } + else if(is_file_iso(game->info.path)) + { + fs::stat_t iso_stat; + fs::get_stat(game->info.path, iso_stat); + + game->info.size_on_disk = iso_stat.size; + } else { game->info.size_on_disk = fs::get_dir_size(game->info.path, 1, cancel.get());