7956e6f04e
This would cause ODR violations when those headers were included in other places that also included stuff like "Version.h" (note the "meta/Version.h"), which can cause problems, especially in LTO. Signed-off-by: flow <flowlnlnln@gmail.com>
23 lines
600 B
C++
23 lines
600 B
C++
#pragma once
|
|
|
|
#include "InstanceCreationTask.h"
|
|
|
|
#include <utility>
|
|
|
|
class VanillaCreationTask final : public InstanceCreationTask {
|
|
Q_OBJECT
|
|
public:
|
|
VanillaCreationTask(BaseVersion::Ptr version) : InstanceCreationTask(), m_version(std::move(version)) {}
|
|
VanillaCreationTask(BaseVersion::Ptr version, QString loader, BaseVersion::Ptr loader_version);
|
|
|
|
bool createInstance() override;
|
|
|
|
private:
|
|
// Version to update to / create of the instance.
|
|
BaseVersion::Ptr m_version;
|
|
|
|
bool m_using_loader = false;
|
|
QString m_loader;
|
|
BaseVersion::Ptr m_loader_version;
|
|
};
|