diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-05-17 23:38:28 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-05-17 23:38:28 +0200 |
commit | 743af4769ee59b5830d79139852dda0679b28a03 (patch) | |
tree | 939e150c6127c9bc64926da052fe56e2b483990d /logic/minecraft/MinecraftVersion.h | |
parent | 6ab6a450f6831c99ba507436ab15047cfa4d4528 (diff) | |
download | PrismLauncher-743af4769ee59b5830d79139852dda0679b28a03.tar.gz PrismLauncher-743af4769ee59b5830d79139852dda0679b28a03.tar.bz2 PrismLauncher-743af4769ee59b5830d79139852dda0679b28a03.zip |
GH-952 Hardcore version page tweakery
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
Diffstat (limited to 'logic/minecraft/MinecraftVersion.h')
-rw-r--r-- | logic/minecraft/MinecraftVersion.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/logic/minecraft/MinecraftVersion.h b/logic/minecraft/MinecraftVersion.h index 9ee8425a..af15c1a4 100644 --- a/logic/minecraft/MinecraftVersion.h +++ b/logic/minecraft/MinecraftVersion.h @@ -48,9 +48,35 @@ public: /* methods */ bool needsUpdate(); bool hasUpdate(); virtual bool isCustom() override; + virtual bool isMoveable() override + { + return false; + } + virtual bool isCustomizable() override + { + return true; + } + virtual bool isRemovable() override + { + return false; + } + virtual bool isRevertible() override + { + return false; + } + virtual bool isEditable() override + { + return false; + } + virtual bool isVersionChangeable() override + { + return true; + } VersionFilePtr getVersionFile(); + virtual QJsonDocument toJson(bool saveOrder) override; + private: /* methods */ void applyFileTo(MinecraftProfile *version); |