mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-02 19:36:57 +03:00
Try to be cross-platform
This commit is contained in:
parent
6f6d912d07
commit
c0e58fbfb2
3 changed files with 15 additions and 1 deletions
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue