mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-14 04:32:14 +00:00
Try to be cross-platform
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user