summaryrefslogtreecommitdiffstats
path: root/logic/OneSixUpdate.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-02-02 01:09:28 +0100
committerPetr Mrázek <peterix@gmail.com>2015-04-12 20:57:17 +0200
commitd313e9ab09639346526b75c92498188753cb5b87 (patch)
tree1df78fb6150b77a705b48aa3af0a845131000309 /logic/OneSixUpdate.cpp
parent382ae78a0bf75892827321b052c6afbd195476bc (diff)
downloadMultiMC-d313e9ab09639346526b75c92498188753cb5b87.tar
MultiMC-d313e9ab09639346526b75c92498188753cb5b87.tar.gz
MultiMC-d313e9ab09639346526b75c92498188753cb5b87.tar.lz
MultiMC-d313e9ab09639346526b75c92498188753cb5b87.tar.xz
MultiMC-d313e9ab09639346526b75c92498188753cb5b87.zip
SCRATCH remove remaining references to MultiMC.h and fix legacy LWJGL
Diffstat (limited to 'logic/OneSixUpdate.cpp')
-rw-r--r--logic/OneSixUpdate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/OneSixUpdate.cpp b/logic/OneSixUpdate.cpp
index 26a55cc9..38e9c0d7 100644
--- a/logic/OneSixUpdate.cpp
+++ b/logic/OneSixUpdate.cpp
@@ -13,7 +13,6 @@
* limitations under the License.
*/
-#include "MultiMC.h"
#include "logic/Env.h"
#include "OneSixUpdate.h"
@@ -52,7 +51,7 @@ void OneSixUpdate::executeTask()
// Get a pointer to the version object that corresponds to the instance's version.
targetVersion = std::dynamic_pointer_cast<MinecraftVersion>(
- MMC->minecraftlist()->findVersion(m_inst->intendedVersionId()));
+ ENV.getVersion("net.minecraft", m_inst->intendedVersionId()));
if (targetVersion == nullptr)
{
// don't do anything if it was invalid
@@ -65,7 +64,7 @@ void OneSixUpdate::executeTask()
jarlibStart();
return;
}
- versionUpdateTask = MMC->minecraftlist()->createUpdateTask(m_inst->intendedVersionId());
+ versionUpdateTask = std::dynamic_pointer_cast<MinecraftVersionList>(ENV.getVersionList("net.minecraft"))->createUpdateTask(m_inst->intendedVersionId());
if (!versionUpdateTask)
{
QLOG_DEBUG() << "Didn't spawn an update task.";
@@ -443,3 +442,4 @@ void OneSixUpdate::fmllibsFailed()
emitFailed("Game update failed: it was impossible to fetch the required FML libraries.");
return;
}
+