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

@@ -146,9 +146,10 @@ class XFile : public XObject {
virtual ~XFile();
virtual const std::string& path() const = 0;
virtual const std::string& absolute_path() const = 0;
virtual const std::string& name() const = 0;
virtual fs::Device* device() const = 0;
size_t position() const { return position_; }
void set_position(size_t value) { position_ = value; }