summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/onesix/OneSixProfileStrategy.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/minecraft/onesix/OneSixProfileStrategy.h')
-rw-r--r--logic/minecraft/onesix/OneSixProfileStrategy.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/logic/minecraft/onesix/OneSixProfileStrategy.h b/logic/minecraft/onesix/OneSixProfileStrategy.h
new file mode 100644
index 00000000..96c1ba7b
--- /dev/null
+++ b/logic/minecraft/onesix/OneSixProfileStrategy.h
@@ -0,0 +1,26 @@
+#pragma once
+#include "minecraft/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;
+};