fix: include ^<optional^>
updater doesn't need to know about mods
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
5b04a17730
commit
10266f65e4
@ -135,6 +135,7 @@ bool MMCZip::compressDirFiles(QString fileCompressed, QString dir, QFileInfoList
|
||||
return result;
|
||||
}
|
||||
|
||||
#if defined(LAUNCHER_APPLICATION)
|
||||
// ours
|
||||
bool MMCZip::createModdedJar(QString sourceJarPath, QString targetJarPath, const QList<Mod*>& mods)
|
||||
{
|
||||
@ -235,6 +236,7 @@ bool MMCZip::createModdedJar(QString sourceJarPath, QString targetJarPath, const
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
// ours
|
||||
QString MMCZip::findFolderOfFileInZip(QuaZip* zip, const QString& what, const QStringList& ignore_paths, const QString& root)
|
||||
|
@ -38,7 +38,10 @@
|
||||
#include <QString>
|
||||
#include <QFileInfo>
|
||||
#include <QSet>
|
||||
#include <QUrl>
|
||||
#if defined(LAUNCHER_APPLICATION)
|
||||
#include "minecraft/mod/Mod.h"
|
||||
#endif
|
||||
#include <functional>
|
||||
|
||||
#include <quazip/JlCompress.h>
|
||||
@ -74,10 +77,12 @@ namespace MMCZip
|
||||
*/
|
||||
bool compressDirFiles(QString fileCompressed, QString dir, QFileInfoList files, bool followSymlinks = false);
|
||||
|
||||
#if defined(LAUNCHER_APPLICATION)
|
||||
/**
|
||||
* take a source jar, add mods to it, resulting in target jar
|
||||
*/
|
||||
bool createModdedJar(QString sourceJarPath, QString targetJarPath, const QList<Mod*>& mods);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Find a single file in archive by file name (not path)
|
||||
|
@ -72,7 +72,7 @@ namespace fs = std::filesystem;
|
||||
namespace fs = ghc::filesystem;
|
||||
#endif
|
||||
|
||||
#include <DesktopServices.h>
|
||||
#include "DesktopServices.h"
|
||||
|
||||
#include "updater/prismupdater/UpdaterDialogs.h"
|
||||
|
||||
@ -83,7 +83,7 @@ namespace fs = ghc::filesystem;
|
||||
#include "net/Download.h"
|
||||
#include "net/RawHeaderProxy.h"
|
||||
|
||||
#include <MMCZip.h>
|
||||
#include "MMCZip.h"
|
||||
|
||||
/** output to the log file */
|
||||
void appDebugOutput(QtMsgType type, const QMessageLogContext& context, const QString& msg)
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include <QNetworkReply>
|
||||
#include <QUrl>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
|
||||
#include "QObjectPtr.h"
|
||||
#include "net/Download.h"
|
||||
|
Loading…
Reference in New Issue
Block a user