mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-05 22:55:04 -06:00
ISO: Move game size assignment to size_calc_func in game_list_table.cpp
This commit is contained in:
parent
407cbf9690
commit
bc1d0b9e65
@ -538,14 +538,6 @@ void game_list_frame::OnParsingFinished()
|
|||||||
gui_game_info game{};
|
gui_game_info game{};
|
||||||
game.info.path = dir_or_elf;
|
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 Localized thread_localized;
|
||||||
|
|
||||||
const std::string sfo_dir = !archive ? rpcs3::utils::get_sfo_dir_from_game_path(dir_or_elf) : "PS3_GAME";
|
const std::string sfo_dir = !archive ? rpcs3::utils::get_sfo_dir_from_game_path(dir_or_elf) : "PS3_GAME";
|
||||||
|
|||||||
@ -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)
|
// Do not report size of apps inside /dev_flash (it does not make sense to do so)
|
||||||
game->info.size_on_disk = 0;
|
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
|
else
|
||||||
{
|
{
|
||||||
game->info.size_on_disk = fs::get_dir_size(game->info.path, 1, cancel.get());
|
game->info.size_on_disk = fs::get_dir_size(game->info.path, 1, cancel.get());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user