From 6dca89834e644884130c2f677bf5936c352bb1fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Gli=C5=84ski?= <153369+Gliniak@users.noreply.github.com> Date: Tue, 28 Apr 2026 13:33:29 +0200 Subject: [PATCH] [VFS] Removed error path that seems to be invalid Seems like console do not care about returning directory with non-directory flag --- src/xenia/vfs/virtual_file_system.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/xenia/vfs/virtual_file_system.cc b/src/xenia/vfs/virtual_file_system.cc index 08d048faf..280f47a41 100644 --- a/src/xenia/vfs/virtual_file_system.cc +++ b/src/xenia/vfs/virtual_file_system.cc @@ -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 =