9ff364b0d3
Signed-off-by: timoreo <contact@timoreo.fr>
23 lines
590 B
C++
23 lines
590 B
C++
#pragma once
|
|
|
|
#include "InstanceCreationTask.h"
|
|
|
|
#include <utility>
|
|
|
|
class VanillaCreationTask final : public InstanceCreationTask {
|
|
Q_OBJECT
|
|
public:
|
|
VanillaCreationTask(BaseVersionPtr version) : InstanceCreationTask(), m_version(std::move(version)) {}
|
|
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;
|
|
};
|