summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-12-22 05:47:10 +0100
committerPetr Mrázek <peterix@gmail.com>2013-12-22 05:47:10 +0100
commit7a07ed79407edcb2a543aa0dc80745a0b8c2e234 (patch)
tree1a8bd8b2c8e902b926af0216cac3386709407265 /logic
parent245d441a6eee558557a01d61a726b7feaeb5dc17 (diff)
downloadMultiMC-7a07ed79407edcb2a543aa0dc80745a0b8c2e234.tar
MultiMC-7a07ed79407edcb2a543aa0dc80745a0b8c2e234.tar.gz
MultiMC-7a07ed79407edcb2a543aa0dc80745a0b8c2e234.tar.lz
MultiMC-7a07ed79407edcb2a543aa0dc80745a0b8c2e234.tar.xz
MultiMC-7a07ed79407edcb2a543aa0dc80745a0b8c2e234.zip
FTB fixage
* Corrected an uninitialized variable that prevented forge list loadinf on Windows * Run the update step twice for FTB instances to ensure forge libs get downloaded
Diffstat (limited to 'logic')
-rw-r--r--logic/OneSixFTBInstance.cpp3
-rw-r--r--logic/lists/ForgeVersionList.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/logic/OneSixFTBInstance.cpp b/logic/OneSixFTBInstance.cpp
index 924fc790..4bb5cf42 100644
--- a/logic/OneSixFTBInstance.cpp
+++ b/logic/OneSixFTBInstance.cpp
@@ -111,6 +111,9 @@ std::shared_ptr<Task> OneSixFTBInstance::doUpdate(bool only_prepare)
}
task->addTask(OneSixInstance::doUpdate(only_prepare));
task->addTask(std::shared_ptr<Task>(new OneSixFTBInstanceForge(m_forge->version(), this, this)));
+ //FIXME: yes. this may appear dumb. but the previous step can change the list, so we do it all again.
+ //TODO: Add a graph task. Construct graphs of tasks so we may capture the logic properly.
+ task->addTask(OneSixInstance::doUpdate(only_prepare));
return task;
}
diff --git a/logic/lists/ForgeVersionList.h b/logic/lists/ForgeVersionList.h
index bf9e87b2..f32975ed 100644
--- a/logic/lists/ForgeVersionList.h
+++ b/logic/lists/ForgeVersionList.h
@@ -80,7 +80,7 @@ public:
protected:
QList<BaseVersionPtr> m_vlist;
- bool m_loaded;
+ bool m_loaded = false;
protected
slots: