NOISSUE refactor liteloader version file creation
It no longer implements yet another version file format serialization
This commit is contained in:
@ -24,6 +24,7 @@
|
||||
#include "tasks/Task.h"
|
||||
#include "net/NetJob.h"
|
||||
#include <minecraft/Library.h>
|
||||
#include <minecraft/VersionFile.h>
|
||||
|
||||
#include "multimc_logic_export.h"
|
||||
|
||||
@ -49,6 +50,22 @@ public:
|
||||
{
|
||||
return version;
|
||||
}
|
||||
VersionFilePtr getVersionFile()
|
||||
{
|
||||
auto f = std::make_shared<VersionFile>();
|
||||
f->mainClass = "net.minecraft.launchwrapper.Launch";
|
||||
f->addTweakers += tweakClass;
|
||||
f->order = 10;
|
||||
f->libraries = libraries;
|
||||
auto liteloaderLib = std::make_shared<Library>("com.mumfrey:liteloader:" + version);
|
||||
liteloaderLib->setAbsoluteUrl(QString("http://dl.liteloader.com/versions/com/mumfrey/liteloader/%1/%2").arg(mcVersion, file));
|
||||
f->libraries.append(liteloaderLib);
|
||||
f->name = "LiteLoader";
|
||||
f->fileId = "com.mumfrey.liteloader";
|
||||
f->version = version;
|
||||
f->minecraftVersion = mcVersion;
|
||||
return f;
|
||||
}
|
||||
|
||||
// important info
|
||||
QString version;
|
||||
|
Reference in New Issue
Block a user