summaryrefslogtreecommitdiffstats
path: root/logic/JarUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/JarUtils.h')
-rw-r--r--logic/JarUtils.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/logic/JarUtils.h b/logic/JarUtils.h
new file mode 100644
index 00000000..2e8bd2a7
--- /dev/null
+++ b/logic/JarUtils.h
@@ -0,0 +1,18 @@
+#pragma once
+#include <QString>
+#include <QFileInfo>
+#include <QSet>
+#include "Mod.h"
+#include <functional>
+
+class QuaZip;
+namespace JarUtils
+{
+ bool noFilter(QString);
+ bool metaInfFilter(QString key);
+
+ bool mergeZipFiles(QuaZip *into, QFileInfo from, QSet<QString> &contained,
+ std::function<bool(QString)> filter);
+
+ bool createModdedJar(QString sourceJarPath, QString targetJarPath, const QList<Mod>& mods);
+}