aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ModFolderModel.h
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-04-29 19:38:51 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-04-29 19:55:37 -0700
commitd80dee2a54a172fa19c0bc21486ee43ef2e3514d (patch)
treea0f83a672ba25a09e60678466aca4c52968becb0 /launcher/minecraft/mod/ModFolderModel.h
parent788fa40c2ae0e9786c070f4593a4e7ff6efc77d3 (diff)
downloadPrismLauncher-d80dee2a54a172fa19c0bc21486ee43ef2e3514d.tar.gz
PrismLauncher-d80dee2a54a172fa19c0bc21486ee43ef2e3514d.tar.bz2
PrismLauncher-d80dee2a54a172fa19c0bc21486ee43ef2e3514d.zip
refactor: pass instance ptr to resource models. use it to find instance root.
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/mod/ModFolderModel.h')
-rw-r--r--launcher/minecraft/mod/ModFolderModel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/ModFolderModel.h b/launcher/minecraft/mod/ModFolderModel.h
index 84e70db9..46f5087f 100644
--- a/launcher/minecraft/mod/ModFolderModel.h
+++ b/launcher/minecraft/mod/ModFolderModel.h
@@ -75,7 +75,7 @@ public:
Enable,
Toggle
};
- ModFolderModel(const QString &dir, bool is_indexed = false, bool create_dir = true);
+ ModFolderModel(const QString &dir, std::shared_ptr<const BaseInstance> instance, bool is_indexed = false, bool create_dir = true);
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;