summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/OneSixProfileStrategy.h
blob: a6abe96466327ece44c113afd167adc404e7953d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
#include "ProfileStrategy.h"

class OneSixInstance;

class OneSixProfileStrategy : public ProfileStrategy
{
public:
	OneSixProfileStrategy(OneSixInstance * instance);
	virtual ~OneSixProfileStrategy() {};
	virtual void load() override;
	virtual bool resetOrder() override;
	virtual bool saveOrder(ProfileUtils::PatchOrder order) override;
	virtual bool installJarMods(QStringList filepaths) override;
	virtual bool removePatch(ProfilePatchPtr patch) override;
	virtual bool customizePatch(ProfilePatchPtr patch) override;
	virtual bool revertPatch(ProfilePatchPtr patch) override;

protected:
	virtual void loadDefaultBuiltinPatches();
	virtual void loadUserPatches();
	void upgradeDeprecatedFiles();

protected:
	OneSixInstance *m_instance;
};