mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-14 12:37:23 +00:00
Try to be cross-platform
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "BaseProfiler.h"
|
||||
|
||||
#include <QProcess>
|
||||
|
||||
BaseProfiler::BaseProfiler(OneSixInstance *instance, QObject *parent)
|
||||
: QObject(parent), m_instance(instance)
|
||||
{
|
||||
@@ -14,6 +16,15 @@ void BaseProfiler::beginProfiling(MinecraftProcess *process)
|
||||
beginProfilingImpl(process);
|
||||
}
|
||||
|
||||
qint64 BaseProfiler::pid(QProcess *process)
|
||||
{
|
||||
#ifdef Q_OS_UNIX
|
||||
return process->pid();
|
||||
#else
|
||||
return (qint64)process->pid();
|
||||
#endif
|
||||
}
|
||||
|
||||
BaseProfilerFactory::~BaseProfilerFactory()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user