diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-03-23 23:38:08 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-03-23 23:39:18 +0100 |
commit | a1c713811c5a2f514f7255436cfad836e0cf426b (patch) | |
tree | 20aa682894caf9c3af901d64f103569ae79ab5e2 /api/logic/minecraft/legacy/LegacyUpgradeTask.cpp | |
parent | 106155dd627d8e333260e2460d4c9c558b49b21f (diff) | |
download | PrismLauncher-a1c713811c5a2f514f7255436cfad836e0cf426b.tar.gz PrismLauncher-a1c713811c5a2f514f7255436cfad836e0cf426b.tar.bz2 PrismLauncher-a1c713811c5a2f514f7255436cfad836e0cf426b.zip |
NOISSUE preserve minecraft.jar while migrating Legacy instances
It can be manually modded. It must be preserved when it's the only jar around.
Diffstat (limited to 'api/logic/minecraft/legacy/LegacyUpgradeTask.cpp')
-rw-r--r-- | api/logic/minecraft/legacy/LegacyUpgradeTask.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp b/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp index 6cda3e4d..9fc6d92b 100644 --- a/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp +++ b/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp @@ -92,10 +92,10 @@ void LegacyUpgradeTask::copyFinished() components->buildingFromScratch(); components->setComponentVersion("net.minecraft", preferredVersionNumber, true); - if(legacyInst->shouldUseCustomBaseJar()) + QString jarPath = legacyInst->mainJarToPreserve(); + if(!jarPath.isNull()) { - QString jarPath = legacyInst->customBaseJar(); - qDebug() << "Base jar is custom! : " << jarPath; + qDebug() << "Preserving base jar! : " << jarPath; // FIXME: handle case when the jar is unreadable? // TODO: check the hash, if it's the same as the upstream jar, do not do this components->installCustomJar(jarPath); |