summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2020-11-05 10:43:58 +0100
committerGitHub <noreply@github.com>2020-11-05 10:43:58 +0100
commita63a27840bfa7b08f295bfe682ebc33d70a613b9 (patch)
tree3bf8b3cf5d1ea618c7ac894b6bd58b00e4cefeb5 /src/modinfo.h
parenta7d4f2a0c40d35d547e93994be3f92b6d43a0833 (diff)
parent780cc2a35217e887c9bba0573be1146505114521 (diff)
Merge pull request #1281 from Holt59/imodinterface-filetree
Add IModInterface::fileTree().
Diffstat (limited to 'src/modinfo.h')
-rw-r--r--src/modinfo.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/modinfo.h b/src/modinfo.h
index 7223cece..ad917c17 100644
--- a/src/modinfo.h
+++ b/src/modinfo.h
@@ -368,6 +368,17 @@ public: // IModInterface implementations / Re-declaration
*/
virtual MOBase::EndorsedState endorsedState() const override { return MOBase::EndorsedState::ENDORSED_NEVER; }
+ /**
+ * @brief Retrieve a file tree corresponding to the underlying disk content
+ * of this mod.
+ *
+ * The file tree should not be cached since it is already cached and updated when
+ * required.
+ *
+ * @return a file tree representing the content of this mod.
+ */
+ virtual std::shared_ptr<const MOBase::IFileTree> fileTree() const = 0;
+
public: // Mutable operations:
/**