summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-11-11 04:45:31 +0100
committerPetr Mrázek <peterix@gmail.com>2013-11-11 04:45:31 +0100
commite611aef0e77f727d0c77f6dea0d373e7a12b241c (patch)
tree895e74767b71f5907d006ce01f47ea7d1e0f97ff /logic
parentb097d2f744a5f9152700a3df27c56b3fc8d203b4 (diff)
downloadMultiMC-e611aef0e77f727d0c77f6dea0d373e7a12b241c.tar
MultiMC-e611aef0e77f727d0c77f6dea0d373e7a12b241c.tar.gz
MultiMC-e611aef0e77f727d0c77f6dea0d373e7a12b241c.tar.lz
MultiMC-e611aef0e77f727d0c77f6dea0d373e7a12b241c.tar.xz
MultiMC-e611aef0e77f727d0c77f6dea0d373e7a12b241c.zip
Recover from the bin folder of converted legacy instance being deleted.
Use the new vanilla jar as the base jar if mcbackup.jar is missing.
Diffstat (limited to 'logic')
-rw-r--r--logic/LegacyUpdate.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/logic/LegacyUpdate.cpp b/logic/LegacyUpdate.cpp
index 5008a346..8ba97827 100644
--- a/logic/LegacyUpdate.cpp
+++ b/logic/LegacyUpdate.cpp
@@ -361,7 +361,10 @@ void LegacyUpdate::ModTheJar()
setStatus("Installing mods - backing up minecraft.jar...");
if (!baseJar.exists() && !QFile::copy(runnableJar.filePath(), baseJar.filePath()))
{
- emitFailed("Failed to back up minecraft.jar");
+ emitFailed("It seems both the active and base jar are gone. A fresh base jar will be used on next run.");
+ inst->setShouldRebuild(true);
+ inst->setShouldUpdate(true);
+ inst->setShouldUseCustomBaseJar(false);
return;
}
}