Revert "[VFS] Fixed crash on filename extraction from path."

This reverts commit 02f5316562.

It's not needed anymore thanks to 6cba5ba7e6
This commit is contained in:
Gliniak
2024-11-02 19:44:28 +01:00
parent 35cc2ccd7a
commit d393725353
18 changed files with 29 additions and 44 deletions

View File

@@ -23,9 +23,8 @@ namespace vfs {
HostPathEntry::HostPathEntry(Device* device, Entry* parent,
const std::string_view path,
const std::string_view name,
const std::filesystem::path& host_path)
: Entry(device, parent, path, name), host_path_(host_path) {}
: Entry(device, parent, path), host_path_(host_path) {}
HostPathEntry::~HostPathEntry() = default;
@@ -34,8 +33,7 @@ HostPathEntry* HostPathEntry::Create(Device* device, Entry* parent,
xe::filesystem::FileInfo file_info) {
auto path = xe::utf8::join_guest_paths(parent->path(),
xe::path_to_utf8(file_info.name));
auto entry = new HostPathEntry(device, parent, path,
xe::path_to_utf8(file_info.name), full_path);
auto entry = new HostPathEntry(device, parent, path, full_path);
entry->create_timestamp_ = file_info.create_timestamp;
entry->access_timestamp_ = file_info.access_timestamp;