diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-08-08 09:35:39 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-08-10 00:28:33 +0200 |
commit | c60db13af73523c08353f819cc2a8441a7ddbada (patch) | |
tree | 0acf18894b9d1e5493e45c2dc48ea665740e3ac4 /api/logic/minecraft/launch/LauncherPartLaunch.cpp | |
parent | fc198dd3085a2cd33fbaa7a3d2c95c2c8d3ee31a (diff) | |
download | MultiMC-c60db13af73523c08353f819cc2a8441a7ddbada.tar MultiMC-c60db13af73523c08353f819cc2a8441a7ddbada.tar.gz MultiMC-c60db13af73523c08353f819cc2a8441a7ddbada.tar.lz MultiMC-c60db13af73523c08353f819cc2a8441a7ddbada.tar.xz MultiMC-c60db13af73523c08353f819cc2a8441a7ddbada.zip |
NOISSUE Do not kill running instances when MultiMC shuts down
Diffstat (limited to 'api/logic/minecraft/launch/LauncherPartLaunch.cpp')
-rw-r--r-- | api/logic/minecraft/launch/LauncherPartLaunch.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api/logic/minecraft/launch/LauncherPartLaunch.cpp b/api/logic/minecraft/launch/LauncherPartLaunch.cpp index bc71fe28..398b5515 100644 --- a/api/logic/minecraft/launch/LauncherPartLaunch.cpp +++ b/api/logic/minecraft/launch/LauncherPartLaunch.cpp @@ -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(); |