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
This commit is contained in:
Petr Mrázek 2013-12-22 05:47:10 +01:00
parent 245d441a6e
commit 7a07ed7940
2 changed files with 4 additions and 1 deletions

View File

@ -111,6 +111,9 @@ std::shared_ptr<Task> OneSixFTBInstance::doUpdate(bool only_prepare)
} }
task->addTask(OneSixInstance::doUpdate(only_prepare)); task->addTask(OneSixInstance::doUpdate(only_prepare));
task->addTask(std::shared_ptr<Task>(new OneSixFTBInstanceForge(m_forge->version(), this, this))); 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; return task;
} }

View File

@ -80,7 +80,7 @@ public:
protected: protected:
QList<BaseVersionPtr> m_vlist; QList<BaseVersionPtr> m_vlist;
bool m_loaded; bool m_loaded = false;
protected protected
slots: slots: