refactor: pass instance ptr to resource models. use it to find instance root.
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
788fa40c2a
commit
d80dee2a54
15 changed files with 49 additions and 31 deletions
|
@ -43,7 +43,7 @@ class TexturePackFolderModel : public ResourceFolderModel
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TexturePackFolderModel(const QString &dir);
|
||||
explicit TexturePackFolderModel(const QString &dir, std::shared_ptr<const BaseInstance> instance);
|
||||
[[nodiscard]] Task* createUpdateTask() override;
|
||||
[[nodiscard]] Task* createParseTask(Resource&) override;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue