mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 18:14:22 +00:00
42 lines
868 B
C++
42 lines
868 B
C++
#include "BaseExternalTool.h"
|
|
|
|
#include <QProcess>
|
|
#include <QDir>
|
|
|
|
#ifdef Q_OS_WIN
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
#include "BaseInstance.h"
|
|
|
|
BaseExternalTool::BaseExternalTool(SettingsObjectPtr settings, InstancePtr instance, QObject *parent)
|
|
: QObject(parent), m_instance(instance), globalSettings(settings)
|
|
{
|
|
}
|
|
|
|
BaseExternalTool::~BaseExternalTool()
|
|
{
|
|
}
|
|
|
|
BaseDetachedTool::BaseDetachedTool(SettingsObjectPtr settings, InstancePtr instance, QObject *parent)
|
|
: BaseExternalTool(settings, instance, parent)
|
|
{
|
|
|
|
}
|
|
|
|
void BaseDetachedTool::run()
|
|
{
|
|
runImpl();
|
|
}
|
|
|
|
|
|
BaseExternalToolFactory::~BaseExternalToolFactory()
|
|
{
|
|
}
|
|
|
|
BaseDetachedTool *BaseDetachedToolFactory::createDetachedTool(InstancePtr instance,
|
|
QObject *parent)
|
|
{
|
|
return qobject_cast<BaseDetachedTool *>(createTool(instance, parent));
|
|
}
|