aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ResourcePackFolderModel.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/ResourcePackFolderModel.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/ResourcePackFolderModel.h')
-rw-r--r--launcher/minecraft/mod/ResourcePackFolderModel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/ResourcePackFolderModel.h b/launcher/minecraft/mod/ResourcePackFolderModel.h
index cb620ce2..66d5a074 100644
--- a/launcher/minecraft/mod/ResourcePackFolderModel.h
+++ b/launcher/minecraft/mod/ResourcePackFolderModel.h
@@ -17,7 +17,7 @@ public:
NUM_COLUMNS
};
- explicit ResourcePackFolderModel(const QString &dir);
+ explicit ResourcePackFolderModel(const QString &dir, std::shared_ptr<const BaseInstance> instance);
[[nodiscard]] QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;