2013-09-22 03:21:36 +01:00
|
|
|
#pragma once
|
|
|
|
#include <QString>
|
2013-10-06 00:13:40 +01:00
|
|
|
#include <memory>
|
2013-09-22 03:21:36 +01:00
|
|
|
|
|
|
|
class OneSixVersion;
|
|
|
|
|
|
|
|
class ForgeInstaller
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ForgeInstaller(QString filename, QString universal_url);
|
|
|
|
|
2013-10-06 00:13:40 +01:00
|
|
|
bool apply(std::shared_ptr<OneSixVersion> to);
|
2013-09-22 03:21:36 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
// the version, read from the installer
|
2013-10-06 00:13:40 +01:00
|
|
|
std::shared_ptr<OneSixVersion> m_forge_version;
|
2013-09-22 03:21:36 +01:00
|
|
|
QString internalPath;
|
|
|
|
QString finalPath;
|
|
|
|
QString realVersionId;
|
|
|
|
QString m_universal_url;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|