diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-05-08 19:05:07 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-09 01:38:29 +0200 |
commit | 69a9ca39ad0685663092a4455de3865715f0122e (patch) | |
tree | e7688a7421d64b000cf98930ae08408c1559e574 /logic/VersionFile.cpp | |
parent | 825d31bf1a7e66eee8a139ecd9b272cf3c374349 (diff) | |
download | MultiMC-69a9ca39ad0685663092a4455de3865715f0122e.tar MultiMC-69a9ca39ad0685663092a4455de3865715f0122e.tar.gz MultiMC-69a9ca39ad0685663092a4455de3865715f0122e.tar.lz MultiMC-69a9ca39ad0685663092a4455de3865715f0122e.tar.xz MultiMC-69a9ca39ad0685663092a4455de3865715f0122e.zip |
Add builtin Minecraft versions for legacy
Diffstat (limited to 'logic/VersionFile.cpp')
-rw-r--r-- | logic/VersionFile.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/logic/VersionFile.cpp b/logic/VersionFile.cpp index 222750d4..87936b6a 100644 --- a/logic/VersionFile.cpp +++ b/logic/VersionFile.cpp @@ -163,13 +163,14 @@ VersionFilePtr VersionFile::fromJson(const QJsonDocument &doc, const QString &fi } readString("mainClass", out->mainClass); + readString("appletClass", out->appletClass); readString("processArguments", out->processArguments); readString("minecraftArguments", out->overwriteMinecraftArguments); readString("+minecraftArguments", out->addMinecraftArguments); readString("-minecraftArguments", out->removeMinecraftArguments); readString("type", out->type); - readString("releaseTime", out->releaseTime); - readString("time", out->time); + readString("releaseTime", out->versionReleaseTime); + readString("time", out->versionFileUpdateTime); readString("assets", out->assets); if (root.contains("minimumLauncherVersion")) @@ -404,6 +405,10 @@ void VersionFile::applyTo(VersionFinal *version) { version->mainClass = mainClass; } + if (!appletClass.isNull()) + { + version->appletClass = appletClass; + } if (!processArguments.isNull()) { if(isVanilla()) @@ -416,13 +421,13 @@ void VersionFile::applyTo(VersionFinal *version) { version->type = type; } - if (!releaseTime.isNull()) + if (!versionReleaseTime.isNull()) { - version->releaseTime = releaseTime; + version->versionReleaseTime = versionReleaseTime; } - if (!time.isNull()) + if (!versionFileUpdateTime.isNull()) { - version->time = time; + version->time = versionFileUpdateTime; } if (!assets.isNull()) { |