NOISSUE clean up forge installer
This commit is contained in:
parent
576d808d71
commit
010e07eb45
7 changed files with 131 additions and 172 deletions
|
@ -1,5 +1,4 @@
|
|||
#include "OneSixVersionFormat.h"
|
||||
#include <minecraft/NullProfileStrategy.h>
|
||||
#include <Json.h>
|
||||
#include "minecraft/ParseUtils.h"
|
||||
#include <minecraft/MinecraftVersion.h>
|
||||
|
@ -283,23 +282,6 @@ QJsonDocument OneSixVersionFormat::profilePatchToJson(const ProfilePatchPtr &pat
|
|||
throw VersionIncomplete(QObject::tr("Unhandled object type while processing %1").arg(patch->getName()));
|
||||
}
|
||||
|
||||
std::shared_ptr<MinecraftProfile> OneSixVersionFormat::profileFromSingleJson(const QJsonObject &obj)
|
||||
{
|
||||
std::shared_ptr<MinecraftProfile> version(new MinecraftProfile(new NullProfileStrategy()));
|
||||
try
|
||||
{
|
||||
version->clear();
|
||||
auto file = versionFileFromJson(QJsonDocument(obj), QString(), false);
|
||||
file->applyTo(version.get());
|
||||
version->appendPatch(file);
|
||||
}
|
||||
catch(Exception &err)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
return version;
|
||||
}
|
||||
|
||||
JarmodPtr OneSixVersionFormat::jarModFromJson(const QJsonObject &libObj, const QString &filename, const QString &originalName)
|
||||
{
|
||||
JarmodPtr out(new Jarmod());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue