summaryrefslogtreecommitdiffstats
path: root/logic/JarUtils.h
blob: 2e8bd2a79000069c2cf021e88e4c900fd223b0cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
}