summaryrefslogtreecommitdiffstats
path: root/logic/ftb/FTBProfileStrategy.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-04-03 11:55:16 +0200
committerPetr Mrázek <peterix@gmail.com>2015-04-03 11:55:16 +0200
commit865b20057120a61cfd26f5eea9aa68243efc3319 (patch)
tree683e0258ff943caa6720b3d857609956af6a9291 /logic/ftb/FTBProfileStrategy.h
parentdc84ac368293462161f32b1dc081c8bea5e51e49 (diff)
downloadMultiMC-865b20057120a61cfd26f5eea9aa68243efc3319.tar
MultiMC-865b20057120a61cfd26f5eea9aa68243efc3319.tar.gz
MultiMC-865b20057120a61cfd26f5eea9aa68243efc3319.tar.lz
MultiMC-865b20057120a61cfd26f5eea9aa68243efc3319.tar.xz
MultiMC-865b20057120a61cfd26f5eea9aa68243efc3319.zip
GH-856 add profile strategy for FTB packs
Diffstat (limited to 'logic/ftb/FTBProfileStrategy.h')
-rw-r--r--logic/ftb/FTBProfileStrategy.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/logic/ftb/FTBProfileStrategy.h b/logic/ftb/FTBProfileStrategy.h
new file mode 100644
index 00000000..65f07069
--- /dev/null
+++ b/logic/ftb/FTBProfileStrategy.h
@@ -0,0 +1,21 @@
+#pragma once
+#include "../minecraft/ProfileStrategy.h"
+#include "../minecraft/OneSixProfileStrategy.h"
+
+class OneSixFTBInstance;
+
+class FTBProfileStrategy : public OneSixProfileStrategy
+{
+public:
+ FTBProfileStrategy(OneSixFTBInstance * instance);
+ virtual ~FTBProfileStrategy() {};
+ 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;
+
+protected:
+ void loadDefaultBuiltinPatches();
+ void loadUserPatches();
+};