[VFS] Removed error path that seems to be invalid
Seems like console do not care about returning directory with non-directory flag
This commit is contained in:
@@ -244,14 +244,6 @@ X_STATUS VirtualFileSystem::OpenFile(Entry* root_entry,
|
||||
return X_STATUS_FILE_IS_A_DIRECTORY;
|
||||
}
|
||||
|
||||
if (!(entry->attributes() & kFileAttributeDirectory) && is_directory) {
|
||||
// Device root should be treated as a directory, but because we do not
|
||||
// emulate that correctly for now I will leave this ugly hack.
|
||||
if (!entry->absolute_path().starts_with("\\Device")) {
|
||||
return X_STATUS_NOT_A_DIRECTORY;
|
||||
}
|
||||
}
|
||||
|
||||
// If the entry does not exist on the host then remove the cached entry
|
||||
if (parent_entry) {
|
||||
const xe::vfs::HostPathEntry* host_path =
|
||||
|
||||
Reference in New Issue
Block a user