2015-01-28 03:01:07 +05:30
|
|
|
#pragma once
|
2016-02-28 00:28:40 +05:30
|
|
|
#include "minecraft/ProfileStrategy.h"
|
2015-01-28 03:01:07 +05:30
|
|
|
|
|
|
|
class OneSixInstance;
|
|
|
|
|
|
|
|
class OneSixProfileStrategy : public ProfileStrategy
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
OneSixProfileStrategy(OneSixInstance * instance);
|
|
|
|
virtual ~OneSixProfileStrategy() {};
|
2017-08-07 04:16:29 +05:30
|
|
|
void load() override;
|
|
|
|
bool resetOrder() override;
|
|
|
|
bool saveOrder(ProfileUtils::PatchOrder order) override;
|
|
|
|
bool installJarMods(QStringList filepaths) override;
|
|
|
|
bool installCustomJar(QString filepath) override;
|
|
|
|
bool removePatch(ProfilePatchPtr patch) override;
|
|
|
|
bool customizePatch(ProfilePatchPtr patch) override;
|
|
|
|
bool revertPatch(ProfilePatchPtr patch) override;
|
2015-01-28 03:01:07 +05:30
|
|
|
|
|
|
|
protected:
|
2016-02-21 10:21:36 +05:30
|
|
|
virtual void loadDefaultBuiltinPatches();
|
|
|
|
virtual void loadUserPatches();
|
2015-01-28 03:01:07 +05:30
|
|
|
void upgradeDeprecatedFiles();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
OneSixInstance *m_instance;
|
2015-05-18 03:08:28 +05:30
|
|
|
};
|