aboutsummaryrefslogtreecommitdiff
path: root/launcher/MMCZip.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-01-28 13:26:59 +0100
committerSefa Eyeoglu <contact@scrumplex.net>2022-01-31 21:40:59 +0100
commitc4cb7ddc4f9c06006d585ba7ff7405ac0cfdbb3c (patch)
tree86b6868c6f660bda4655fefc4c7958a320e23618 /launcher/MMCZip.h
parenta8089b76c0e7961e31b96cdd203e3c345183645b (diff)
downloadPrismLauncher-c4cb7ddc4f9c06006d585ba7ff7405ac0cfdbb3c.tar.gz
PrismLauncher-c4cb7ddc4f9c06006d585ba7ff7405ac0cfdbb3c.tar.bz2
PrismLauncher-c4cb7ddc4f9c06006d585ba7ff7405ac0cfdbb3c.zip
fix: bring back JAR Folder mods
what is this?
Diffstat (limited to 'launcher/MMCZip.h')
-rw-r--r--launcher/MMCZip.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/launcher/MMCZip.h b/launcher/MMCZip.h
index 29ae2a63..0f7aa254 100644
--- a/launcher/MMCZip.h
+++ b/launcher/MMCZip.h
@@ -35,6 +35,24 @@ namespace MMCZip
const FilterFunction filter = nullptr);
/**
+ * Compress directory, by providing a list of files to compress
+ * \param zip target archive
+ * \param dir directory that will be compressed (to compress with relative paths)
+ * \param files list of files to compress
+ * \return true for success or false for failure
+ */
+ bool compressDirFiles(QuaZip *zip, QString dir, QFileInfoList files);
+
+ /**
+ * Compress directory, by providing a list of files to compress
+ * \param fileCompressed target archive file
+ * \param dir directory that will be compressed (to compress with relative paths)
+ * \param files list of files to compress
+ * \return true for success or false for failure
+ */
+ bool compressDirFiles(QString fileCompressed, QString dir, QFileInfoList files);
+
+ /**
* take a source jar, add mods to it, resulting in target jar
*/
bool createModdedJar(QString sourceJarPath, QString targetJarPath, const QList<Mod>& mods);
@@ -99,13 +117,4 @@ namespace MMCZip
* \return true for success or false for failure
*/
bool collectFileListRecursively(const QString &rootDir, const QString &subDir, QFileInfoList *files, FilterFunction excludeFilter);
-
- /**
- * Compress directory, by providing a list of files to compress
- * \param fileCompressed target archive file
- * \param dir directory that will be compressed (to compress with relative paths)
- * \param files list of files to compress
- * \return true for success or false for failure
- */
- bool compressDirFiles(QString fileCompressed, QString dir, QFileInfoList files);
}