2013-11-04 07:23:05 +05:30
|
|
|
/* 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 07:51:36 +05:30
|
|
|
#pragma once
|
2014-01-24 02:01:41 +05:30
|
|
|
|
|
|
|
#include "BaseInstaller.h"
|
|
|
|
|
2013-09-22 07:51:36 +05:30
|
|
|
#include <QString>
|
2013-10-06 04:43:40 +05:30
|
|
|
#include <memory>
|
2013-09-22 07:51:36 +05:30
|
|
|
|
2014-03-02 03:36:47 +05:30
|
|
|
class VersionFinal;
|
2013-09-22 07:51:36 +05:30
|
|
|
|
2014-01-24 02:01:41 +05:30
|
|
|
class ForgeInstaller : public BaseInstaller
|
2013-09-22 07:51:36 +05:30
|
|
|
{
|
|
|
|
public:
|
|
|
|
ForgeInstaller(QString filename, QString universal_url);
|
|
|
|
|
2014-01-24 22:42:02 +05:30
|
|
|
bool add(OneSixInstance *to) override;
|
2014-01-24 02:01:41 +05:30
|
|
|
|
|
|
|
QString id() const override { return "net.minecraftforge"; }
|
2013-09-22 07:51:36 +05:30
|
|
|
|
|
|
|
private:
|
|
|
|
// the version, read from the installer
|
2014-03-02 03:36:47 +05:30
|
|
|
std::shared_ptr<VersionFinal> m_forge_version;
|
2013-09-22 07:51:36 +05:30
|
|
|
QString internalPath;
|
|
|
|
QString finalPath;
|
|
|
|
QString realVersionId;
|
2014-02-01 19:22:21 +05:30
|
|
|
QString m_forgeVersionString;
|
2013-09-22 07:51:36 +05:30
|
|
|
QString m_universal_url;
|
|
|
|
};
|