From a39fb1ef173ee38acb96a64e58b4fd347713c333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 16 May 2015 18:38:53 +0200 Subject: [PATCH] GH-958 print PID when starting Minecraft --- changelog.md | 1 + logic/minecraft/MinecraftProcess.cpp | 3 +++ 2 files changed, 4 insertions(+) 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());