mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-27 16:02:37 +00:00
SaveData: stop escaping root directory
This commit is contained in:
1 parent
846002c5eb
commit
a0bb129f02
1 file changed
+2
-1
@@ -375,7 +375,8 @@ int KYTY_SYSV_ABI SaveDataDirNameSearch(const SaveDataDirNameSearchCond* cond,
|
|||||||
|
|
||||||
if (Common::File::IsDirectoryExisting(root)) {
|
if (Common::File::IsDirectoryExisting(root)) {
|
||||||
for (const auto& entry: Common::File::GetDirEntries(root)) {
|
for (const auto& entry: Common::File::GetDirEntries(root)) {
|
||||||
if (!entry.is_file && !Common::StartsWith(entry.name, "sce_")) {
|
if (!entry.is_file && entry.name != "." && entry.name != ".." &&
|
||||||
|
!Common::StartsWith(entry.name, "sce_")) {
|
||||||
if (cond->dir_name == nullptr || cond->dir_name->data[0] == '\0' ||
|
if (cond->dir_name == nullptr || cond->dir_name->data[0] == '\0' ||
|
||||||
dir_name_match(Common::ToLower(entry.name).c_str(),
|
dir_name_match(Common::ToLower(entry.name).c_str(),
|
||||||
Common::ToLower(std::string(cond->dir_name->data)).c_str())) {
|
Common::ToLower(std::string(cond->dir_name->data)).c_str())) {
|
||||||
|
|||||||
Reference in new issue
Block a user