summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/vfs_real.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp
index 13f93eecd..7a15d8438 100644
--- a/src/core/file_sys/vfs_real.cpp
+++ b/src/core/file_sys/vfs_real.cpp
@@ -81,6 +81,10 @@ VirtualFile RealVfsFilesystem::OpenFile(std::string_view path_, Mode perms) {
81 } 81 }
82 } 82 }
83 83
84 if (!FS::Exists(path) || !FS::IsFile(path)) {
85 return nullptr;
86 }
87
84 auto reference = std::make_unique<FileReference>(); 88 auto reference = std::make_unique<FileReference>();
85 this->InsertReferenceIntoList(*reference); 89 this->InsertReferenceIntoList(*reference);
86 90