GH-958 print PID when starting Minecraft

This commit is contained in:
Petr Mrázek 2015-05-16 18:38:53 +02:00
parent c75cac684e
commit a39fb1ef17
2 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,7 @@
- MultiMC now doesn't use a proxy by default - MultiMC now doesn't use a proxy by default
- Running profilers now works on Windows - Running profilers now works on Windows
- MultiMC will warn you if you run it from WinRAR or temporary folders - 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 ##UI changes
- Version lists: - Version lists:

View File

@ -250,6 +250,9 @@ void MinecraftProcess::arm()
m_instance->setRunning(false); m_instance->setRunning(false);
return; return;
} }
emit log(tr("Minecraft process ID: %1\n\n").arg(processId()), MessageLevel::MultiMC);
// send the launch script to the launcher part // send the launch script to the launcher part
QByteArray bytes = launchScript.toUtf8(); QByteArray bytes = launchScript.toUtf8();
writeData(bytes.constData(), bytes.length()); writeData(bytes.constData(), bytes.length());