From d0713708e2b8f88f64a4d4e0b00406ec95909751 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 28 Jun 2015 14:41:42 -0700 Subject: [PATCH] Fixing empty VFS devices. --- src/xenia/vfs/device.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenia/vfs/device.cc b/src/xenia/vfs/device.cc index cb60d44e6..1d843828b 100644 --- a/src/xenia/vfs/device.cc +++ b/src/xenia/vfs/device.cc @@ -31,6 +31,11 @@ Entry* Device::ResolvePath(const char* path) { XELOGFS("Device::ResolvePath(%s)", path); + if (!root_entry_) { + // No content at all. + return nullptr; + } + // Walk the path, one separator at a time. auto entry = root_entry_.get(); auto path_parts = xe::split_path(path);