summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/LegacyInstance.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-08-24 00:56:45 +0200
committerPetr Mrázek <peterix@gmail.com>2015-08-24 00:56:45 +0200
commitbc917668ff9ab193ed66b390dd4f0e0bcef4cb43 (patch)
tree129d298e57732bc97161a0074124bfa983f1cdff /logic/minecraft/LegacyInstance.cpp
parent961c1c61b8b8d0e1242edcc59a4db97ad6fb7d7b (diff)
downloadMultiMC-bc917668ff9ab193ed66b390dd4f0e0bcef4cb43.tar
MultiMC-bc917668ff9ab193ed66b390dd4f0e0bcef4cb43.tar.gz
MultiMC-bc917668ff9ab193ed66b390dd4f0e0bcef4cb43.tar.lz
MultiMC-bc917668ff9ab193ed66b390dd4f0e0bcef4cb43.tar.xz
MultiMC-bc917668ff9ab193ed66b390dd4f0e0bcef4cb43.zip
GH-1133 fix bad java path detection some more
Diffstat (limited to 'logic/minecraft/LegacyInstance.cpp')
-rw-r--r--logic/minecraft/LegacyInstance.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/logic/minecraft/LegacyInstance.cpp b/logic/minecraft/LegacyInstance.cpp
index 782135eb..9dd50c80 100644
--- a/logic/minecraft/LegacyInstance.cpp
+++ b/logic/minecraft/LegacyInstance.cpp
@@ -31,6 +31,7 @@
#include <launch/steps/Update.h>
#include <launch/steps/PreLaunchCommand.h>
#include <launch/steps/TextPrint.h>
+#include <launch/steps/CheckJava.h>
#include "minecraft/ModList.h"
#include <MMCZip.h>
@@ -136,6 +137,10 @@ std::shared_ptr<LaunchTask> LegacyInstance::createLaunchTask(AuthSessionPtr sess
{
process->appendStep(std::make_shared<TextPrint>(pptr, "Minecraft folder is:\n" + minecraftRoot() + "\n\n", MessageLevel::MultiMC));
}
+ {
+ auto step = std::make_shared<CheckJava>(pptr);
+ process->appendStep(step);
+ }
// run pre-launch command if that's needed
if(getPreLaunchCommand().size())
{