Browse Source

[acc] also check for symlinks

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/2929/head
crueter 3 months ago
parent
commit
c011d10a46
  1. 4
      src/core/hle/service/acc/profile_manager.cpp

4
src/core/hle/service/acc/profile_manager.cpp

@ -16,6 +16,7 @@
#include "common/fs/fs.h" #include "common/fs/fs.h"
#include "common/fs/fs_types.h" #include "common/fs/fs_types.h"
#include "common/fs/path_util.h" #include "common/fs/path_util.h"
#include "common/fs/symlink.h"
#include "common/settings.h" #include "common/settings.h"
#include "common/string_util.h" #include "common/string_util.h"
#include "core/file_sys/savedata_factory.h" #include "core/file_sys/savedata_factory.h"
@ -559,7 +560,8 @@ std::vector<std::string> ProfileManager::FindOrphanedProfiles()
override = true; override = true;
// if there are any regular files (NOT directories) there, do NOT delete it :p // 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; return false;
} }
} catch (const fs::filesystem_error& e) { } catch (const fs::filesystem_error& e) {

Loading…
Cancel
Save