2015-01-27 21:31:07 +00:00
|
|
|
#pragma once
|
2016-02-27 18:58:40 +00:00
|
|
|
#include "minecraft/ProfileStrategy.h"
|
2015-01-27 21:31:07 +00:00
|
|
|
|
|
|
|
class OneSixInstance;
|
|
|
|
|
|
|
|
class OneSixProfileStrategy : public ProfileStrategy
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
OneSixProfileStrategy(OneSixInstance * instance);
|
|
|
|
virtual ~OneSixProfileStrategy() {};
|
2017-08-06 23:46:29 +01:00
|
|
|
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-27 21:31:07 +00:00
|
|
|
|
|
|
|
protected:
|
2016-02-21 04:51:36 +00:00
|
|
|
virtual void loadDefaultBuiltinPatches();
|
|
|
|
virtual void loadUserPatches();
|
2015-01-27 21:31:07 +00:00
|
|
|
void upgradeDeprecatedFiles();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
OneSixInstance *m_instance;
|
2015-05-17 22:38:28 +01:00
|
|
|
};
|