From 07e81fe1727df1516d613bbaba209c35ba5f9f00 Mon Sep 17 00:00:00 2001 From: Roy Stewart Date: Fri, 3 Feb 2023 02:43:51 -0500 Subject: [PATCH] [Base] Filter out relative directories on linux --- src/xenia/base/filesystem_posix.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xenia/base/filesystem_posix.cc b/src/xenia/base/filesystem_posix.cc index 85a727f1e..193e637ea 100644 --- a/src/xenia/base/filesystem_posix.cc +++ b/src/xenia/base/filesystem_posix.cc @@ -217,6 +217,10 @@ std::vector ListFiles(const std::filesystem::path& path) { } while (auto ent = readdir(dir)) { + if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) { + continue; + } + FileInfo info; info.name = ent->d_name;