From c011d10a4665cc92ba179b5409aa7b4cdbc817c5 Mon Sep 17 00:00:00 2001 From: crueter Date: Fri, 7 Nov 2025 12:06:54 -0500 Subject: [PATCH] [acc] also check for symlinks Signed-off-by: crueter --- src/core/hle/service/acc/profile_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp index 5db00860ce..07b14a8ab9 100644 --- a/src/core/hle/service/acc/profile_manager.cpp +++ b/src/core/hle/service/acc/profile_manager.cpp @@ -16,6 +16,7 @@ #include "common/fs/fs.h" #include "common/fs/fs_types.h" #include "common/fs/path_util.h" +#include "common/fs/symlink.h" #include "common/settings.h" #include "common/string_util.h" #include "core/file_sys/savedata_factory.h" @@ -559,7 +560,8 @@ std::vector ProfileManager::FindOrphanedProfiles() override = true; // if there are any regular files (NOT directories) there, do NOT delete it :p - if (file.is_regular_file()) + // Also: check for symlinks + if (file.is_regular_file() || Common::FS::IsSymlink(file.path())) return false; } } catch (const fs::filesystem_error& e) {