From 2620a51cc9d75dedf35793f98b96286ac3b08367 Mon Sep 17 00:00:00 2001 From: Eladash Date: Fri, 18 Sep 2020 22:21:03 +0300 Subject: [PATCH] cellSaveData: Minor fix --- rpcs3/Emu/Cell/Modules/cellSaveData.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; }