Fix XamContent return (!) and vfs use.

Progress on #305.
This commit is contained in:
Ben Vanik
2015-06-28 17:33:06 -07:00
parent 1106029afc
commit b663b615bf
6 changed files with 19 additions and 20 deletions

View File

@@ -19,9 +19,8 @@ Device::Device(const std::string& mount_path) : mount_path_(mount_path) {}
Device::~Device() = default;
void Device::Dump(StringBuffer* string_buffer) {
if (root_entry_) {
root_entry_->Dump(string_buffer, 0);
}
root_entry_->Dump(string_buffer, 0);
}
}
Entry* Device::ResolvePath(const char* path) {
@@ -31,11 +30,6 @@ 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);