NOISSUE Do not kill running instances when MultiMC shuts down

This commit is contained in:
Petr Mrázek
2016-08-08 09:35:39 +02:00
parent fc198dd308
commit c60db13af7
4 changed files with 24 additions and 2 deletions

View File

@ -51,6 +51,9 @@ void DirectJavaLaunch::executeTask()
m_process.setProcessEnvironment(instance->createEnvironment());
// make detachable - this will keep the process running even if the object is destroyed
m_process.setDetachable(true);
auto mcArgs = minecraftInstance->processMinecraftArgs(m_session);
args.append(mcArgs);

View File

@ -40,6 +40,9 @@ void LauncherPartLaunch::executeTask()
m_process.setProcessEnvironment(instance->createEnvironment());
// make detachable - this will keep the process running even if the object is destroyed
m_process.setDetachable(true);
args << "-jar" << FS::PathCombine(QCoreApplication::applicationDirPath(), "jars", "NewLaunch.jar");
QString wrapperCommand = instance->getWrapperCommand();