2013-11-04 01:53:05 +00:00
|
|
|
/* Copyright 2013 MultiMC Contributors
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2013-09-22 03:21:36 +01:00
|
|
|
#pragma once
|
2014-01-23 20:31:41 +00:00
|
|
|
|
|
|
|
#include "BaseInstaller.h"
|
|
|
|
|
2013-09-22 03:21:36 +01:00
|
|
|
#include <QString>
|
2013-10-06 00:13:40 +01:00
|
|
|
#include <memory>
|
2013-09-22 03:21:36 +01:00
|
|
|
|
2014-03-01 22:06:47 +00:00
|
|
|
class VersionFinal;
|
2013-09-22 03:21:36 +01:00
|
|
|
|
2014-01-23 20:31:41 +00:00
|
|
|
class ForgeInstaller : public BaseInstaller
|
2013-09-22 03:21:36 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ForgeInstaller(QString filename, QString universal_url);
|
|
|
|
|
2014-01-24 17:12:02 +00:00
|
|
|
bool add(OneSixInstance *to) override;
|
2014-01-23 20:31:41 +00:00
|
|
|
|
|
|
|
QString id() const override { return "net.minecraftforge"; }
|
2013-09-22 03:21:36 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
// the version, read from the installer
|
2014-03-01 22:06:47 +00:00
|
|
|
std::shared_ptr<VersionFinal> m_forge_version;
|
2013-09-22 03:21:36 +01:00
|
|
|
QString internalPath;
|
|
|
|
QString finalPath;
|
|
|
|
QString realVersionId;
|
2014-02-01 13:52:21 +00:00
|
|
|
QString m_forgeVersionString;
|
2013-09-22 03:21:36 +01:00
|
|
|
QString m_universal_url;
|
|
|
|
};
|