From 0b720aeb5974b949e81feb4d50299cc1ba85530e Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 13 Jul 2019 21:43:43 +0200 Subject: [PATCH] cellSaveData: ignore dot and dotdot --- rpcs3/Emu/Cell/Modules/cellSaveData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp index 5a466da8d5..669e95b8a9 100644 --- a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp @@ -298,7 +298,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v // get the saves matching the supplied prefix for (auto&& entry : fs::dir(base_dir)) { - if (!entry.is_directory) + if (!entry.is_directory || entry.name == "." || entry.name == "..") { continue; }