mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-03-01 06:55:48 +00:00
[rpcsx-os] getdirent: do not report ..
This commit is contained in:
parent
c998b3760a
commit
5a61682b84
@ -509,6 +509,10 @@ orbis::ErrorCode HostFsDevice::open(orbis::Ref<orbis::File> *file,
|
||||
if (r <= 0)
|
||||
break;
|
||||
|
||||
if (hostEntry.d_name == std::string_view("..")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
auto &entry = dirEntries.emplace_back();
|
||||
entry.fileno = dirEntries.size(); // TODO
|
||||
entry.reclen = sizeof(entry);
|
||||
|
Loading…
x
Reference in New Issue
Block a user