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