2022-07-08 00:31:24 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "InstanceCreationTask.h"
|
|
|
|
|
2022-09-26 10:50:31 +01:00
|
|
|
#include <utility>
|
|
|
|
|
2022-07-08 00:31:24 +01:00
|
|
|
class VanillaCreationTask final : public InstanceCreationTask {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2022-09-26 10:50:31 +01:00
|
|
|
VanillaCreationTask(BaseVersionPtr version) : InstanceCreationTask(), m_version(std::move(version)) {}
|
2022-07-08 00:31:24 +01:00
|
|
|
VanillaCreationTask(BaseVersionPtr version, QString loader, BaseVersionPtr loader_version);
|
|
|
|
|
|
|
|
bool createInstance() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
// Version to update to / create of the instance.
|
|
|
|
BaseVersionPtr m_version;
|
|
|
|
|
|
|
|
bool m_using_loader = false;
|
|
|
|
QString m_loader;
|
|
|
|
BaseVersionPtr m_loader_version;
|
|
|
|
};
|