Version patches get a lot of new flags that determine which actions are allowed Version page respects the flags Customize, revert and edit for version patches Builting patches can be customized
		
			
				
	
	
		
			23 lines
		
	
	
		
			676 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			676 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #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 customizePatch (ProfilePatchPtr patch) override;
 | |
| 	virtual bool revertPatch (ProfilePatchPtr patch) override;
 | |
| 
 | |
| protected:
 | |
| 	void loadDefaultBuiltinPatches();
 | |
| 	void loadUserPatches();
 | |
| };
 |