diff --git a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp index d3d8560ef5..109e0acf75 100644 --- a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp @@ -136,6 +136,11 @@ static std::vector get_save_entries(const std::string& base_dir, for (const auto& entry2 : fs::dir(base_dir + entry.name)) { + if (entry2.is_directory) + { + continue; + } + save_entry.size += entry2.size; } @@ -643,6 +648,11 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v for (const auto& entry2 : fs::dir(base_dir + entry.name)) { + if (entry2.is_directory) + { + continue; + } + save_entry2.size += entry2.size; }