Browse Source

vfs_real: require file existence on open

pull/15/merge
Liam 3 years ago
parent
commit
ed7c4af915
  1. 4
      src/core/file_sys/vfs_real.cpp

4
src/core/file_sys/vfs_real.cpp

@ -81,6 +81,10 @@ VirtualFile RealVfsFilesystem::OpenFile(std::string_view path_, Mode perms) {
}
}
if (!FS::Exists(path) || !FS::IsFile(path)) {
return nullptr;
}
auto reference = std::make_unique<FileReference>();
this->InsertReferenceIntoList(*reference);

Loading…
Cancel
Save