aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ModFolderModel.h
diff options
context:
space:
mode:
authorflow <thiagodonato300@gmail.com>2022-04-14 22:02:41 -0300
committerflow <flowlnlnln@gmail.com>2022-05-23 14:42:27 -0300
commite93b9560b5137a5ee7acdc34c0f74992aa02aad6 (patch)
tree96925606690e2c9ed3b7e1fa7d7b988e74cea36f /launcher/minecraft/mod/ModFolderModel.h
parent8e4438b375ee904aa8225b569899355372e5987c (diff)
downloadPrismLauncher-e93b9560b5137a5ee7acdc34c0f74992aa02aad6.tar.gz
PrismLauncher-e93b9560b5137a5ee7acdc34c0f74992aa02aad6.tar.bz2
PrismLauncher-e93b9560b5137a5ee7acdc34c0f74992aa02aad6.zip
feat: add method to delete mod metadata
Also moves indexDir setting from LocalModUpdateTask -> ModFolderModel
Diffstat (limited to 'launcher/minecraft/mod/ModFolderModel.h')
-rw-r--r--launcher/minecraft/mod/ModFolderModel.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/ModFolderModel.h b/launcher/minecraft/mod/ModFolderModel.h
index 62c504df..f8ad4ca8 100644
--- a/launcher/minecraft/mod/ModFolderModel.h
+++ b/launcher/minecraft/mod/ModFolderModel.h
@@ -108,11 +108,16 @@ public:
bool isValid();
- QDir dir()
+ QDir& dir()
{
return m_dir;
}
+ QDir indexDir()
+ {
+ return { QString("%1/.index").arg(dir().absolutePath()) };
+ }
+
const QList<Mod> & allMods()
{
return mods;