[VFS] Make ResolvePath / Dump virtual

This commit is contained in:
Dr. Chat
2018-05-26 18:43:07 -05:00
parent 9231317eeb
commit 728ed593ad
8 changed files with 90 additions and 31 deletions

View File

@@ -129,6 +129,8 @@ class StfsContainerDevice : public Device {
~StfsContainerDevice() override;
bool Initialize() override;
void Dump(StringBuffer* string_buffer) override;
Entry* ResolvePath(std::string path) override;
uint32_t total_allocation_units() const override {
return uint32_t(mmap_->size() / sectors_per_allocation_unit() /
@@ -163,6 +165,7 @@ class StfsContainerDevice : public Device {
std::wstring local_path_;
std::unique_ptr<MappedMemory> mmap_;
std::unique_ptr<Entry> root_entry_;
StfsPackageType package_type_;
StfsHeader header_;
uint32_t table_size_shift_;