Added device(), removed absolute_path() on XFile. NtCreateFile now uses the file's device to resolve root directory requests.

This commit is contained in:
gibbed
2015-05-24 02:34:47 -05:00
parent 2353b58d77
commit 2f905c0864
8 changed files with 20 additions and 20 deletions

View File

@@ -27,12 +27,10 @@ DiscImageFile::~DiscImageFile() { delete entry_; }
const std::string& DiscImageFile::path() const { return entry_->path(); }
const std::string& DiscImageFile::absolute_path() const {
return entry_->absolute_path();
}
const std::string& DiscImageFile::name() const { return entry_->name(); }
Device* DiscImageFile::device() const { return entry_->device(); }
X_STATUS DiscImageFile::QueryInfo(XFileInfo* out_info) {
return entry_->QueryInfo(out_info);
}

View File

@@ -25,9 +25,10 @@ class DiscImageFile : public XFile {
~DiscImageFile() override;
const std::string& path() const override;
const std::string& absolute_path() const override;
const std::string& name() const override;
Device* device() const override;
X_STATUS QueryInfo(XFileInfo* out_info) override;
X_STATUS QueryDirectory(XDirectoryInfo* out_info, size_t length,
const char* file_name, bool restart) override;

View File

@@ -27,12 +27,10 @@ HostPathFile::~HostPathFile() {
const std::string& HostPathFile::path() const { return entry_->path(); }
const std::string& HostPathFile::absolute_path() const {
return entry_->absolute_path();
}
const std::string& HostPathFile::name() const { return entry_->name(); }
Device* HostPathFile::device() const { return entry_->device(); }
X_STATUS HostPathFile::QueryInfo(XFileInfo* out_info) {
return entry_->QueryInfo(out_info);
}

View File

@@ -27,9 +27,10 @@ class HostPathFile : public XFile {
~HostPathFile() override;
const std::string& path() const override;
const std::string& absolute_path() const override;
const std::string& name() const override;
Device* device() const override;
X_STATUS QueryInfo(XFileInfo* out_info) override;
X_STATUS QueryDirectory(XDirectoryInfo* out_info, size_t length,
const char* file_name, bool restart) override;

View File

@@ -27,12 +27,10 @@ STFSContainerFile::~STFSContainerFile() { delete entry_; }
const std::string& STFSContainerFile::path() const { return entry_->path(); }
const std::string& STFSContainerFile::absolute_path() const {
return entry_->absolute_path();
}
const std::string& STFSContainerFile::name() const { return entry_->name(); }
Device* STFSContainerFile::device() const { return entry_->device(); }
X_STATUS STFSContainerFile::QueryInfo(XFileInfo* out_info) {
return entry_->QueryInfo(out_info);
}

View File

@@ -25,9 +25,10 @@ class STFSContainerFile : public XFile {
~STFSContainerFile() override;
const std::string& path() const override;
const std::string& absolute_path() const override;
const std::string& name() const override;
Device* device() const override;
X_STATUS QueryInfo(XFileInfo* out_info) override;
X_STATUS QueryDirectory(XDirectoryInfo* out_info, size_t length,
const char* file_name, bool restart) override;