summaryrefslogtreecommitdiffstats
path: root/logic/OneSixInstance.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-03-09 23:59:30 +0100
committerPetr Mrázek <peterix@gmail.com>2014-03-09 23:59:30 +0100
commitd18b97ae3dc05fdf6ea1793ea06ecad52c28f5e2 (patch)
tree3cb38ad447db5d19ae9f1b95ba70215b82ea0bc9 /logic/OneSixInstance.cpp
parent7fd56a30bd9fba9e0a05f7267e0982be39f00616 (diff)
parent91faaa5b591d7d4203591994718c2ed21d5b4d6e (diff)
downloadMultiMC-d18b97ae3dc05fdf6ea1793ea06ecad52c28f5e2.tar
MultiMC-d18b97ae3dc05fdf6ea1793ea06ecad52c28f5e2.tar.gz
MultiMC-d18b97ae3dc05fdf6ea1793ea06ecad52c28f5e2.tar.lz
MultiMC-d18b97ae3dc05fdf6ea1793ea06ecad52c28f5e2.tar.xz
MultiMC-d18b97ae3dc05fdf6ea1793ea06ecad52c28f5e2.zip
Merge remote-tracking branch 'origin/feature_fix_log' into integration_butchery
Conflicts: logic/MinecraftProcess.cpp
Diffstat (limited to 'logic/OneSixInstance.cpp')
-rw-r--r--logic/OneSixInstance.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/logic/OneSixInstance.cpp b/logic/OneSixInstance.cpp
index 23c4fae1..ed7ad993 100644
--- a/logic/OneSixInstance.cpp
+++ b/logic/OneSixInstance.cpp
@@ -425,7 +425,19 @@ bool OneSixInstance::providesVersionFile() const
bool OneSixInstance::reload()
{
- return BaseInstance::reload() && reloadVersion();
+ if(BaseInstance::reload())
+ {
+ try
+ {
+ reloadVersion();
+ return true;
+ }
+ catch (...)
+ {
+ return false;
+ }
+ }
+ return false;
}
QString OneSixInstance::loaderModsDir() const