Try to be cross-platform

This commit is contained in:
Jan Dalheimer
2014-02-15 18:15:41 +01:00
parent 6f6d912d07
commit c0e58fbfb2
3 changed files with 15 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ void JProfiler::beginProfilingImpl(MinecraftProcess *process)
{
int port = MMC->settings()->get("JProfilerPort").toInt();
QProcess *profiler = new QProcess(this);
profiler->setArguments(QStringList() << "-d" << QString::number(process->pid()) << "--gui"
profiler->setArguments(QStringList() << "-d" << QString::number(pid(process)) << "--gui"
<< "-p" << QString::number(port));
profiler->setProgram(QDir(MMC->settings()->get("JProfilerPath").toString())
.absoluteFilePath("bin/jpenable"));