[rpcsx-os] open dir: ignore '.'

This commit is contained in:
DH 2023-11-25 11:31:04 +03:00
parent f8afd67812
commit 6b24ed11a1

View File

@ -514,7 +514,8 @@ orbis::ErrorCode HostFsDevice::open(orbis::Ref<orbis::File> *file,
if (r <= 0)
break;
if (hostEntry.d_name == std::string_view("..")) {
if (hostEntry.d_name == std::string_view("..") ||
hostEntry.d_name == std::string_view(".")) {
continue;
}