summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-16 18:38:53 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-16 18:42:17 +0200
commita39fb1ef173ee38acb96a64e58b4fd347713c333 (patch)
treeee34d0335fa315ef469c38bbddd4a831384728dd
parentc75cac684e39b9d702478f7c92fb004a02c95981 (diff)
downloadMultiMC-a39fb1ef173ee38acb96a64e58b4fd347713c333.tar
MultiMC-a39fb1ef173ee38acb96a64e58b4fd347713c333.tar.gz
MultiMC-a39fb1ef173ee38acb96a64e58b4fd347713c333.tar.lz
MultiMC-a39fb1ef173ee38acb96a64e58b4fd347713c333.tar.xz
MultiMC-a39fb1ef173ee38acb96a64e58b4fd347713c333.zip
GH-958 print PID when starting Minecraft
-rw-r--r--changelog.md1
-rw-r--r--logic/minecraft/MinecraftProcess.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 7ac2df7e..8eba1eb0 100644
--- a/changelog.md
+++ b/changelog.md
@@ -32,6 +32,7 @@
- MultiMC now doesn't use a proxy by default
- Running profilers now works on Windows
- MultiMC will warn you if you run it from WinRAR or temporary folders
+- Minecraft process ID is printed in the log on start
##UI changes
- Version lists:
diff --git a/logic/minecraft/MinecraftProcess.cpp b/logic/minecraft/MinecraftProcess.cpp
index 1c9f614e..fc2c8a39 100644
--- a/logic/minecraft/MinecraftProcess.cpp
+++ b/logic/minecraft/MinecraftProcess.cpp
@@ -250,6 +250,9 @@ void MinecraftProcess::arm()
m_instance->setRunning(false);
return;
}
+
+ emit log(tr("Minecraft process ID: %1\n\n").arg(processId()), MessageLevel::MultiMC);
+
// send the launch script to the launcher part
QByteArray bytes = launchScript.toUtf8();
writeData(bytes.constData(), bytes.length());