diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-20 23:38:31 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-20 23:38:31 +0200 |
commit | ba3cbb7330fd3435423eb3a77373ca82d65681d3 (patch) | |
tree | d03c176ce5c30e13e15143967b6d800f0d403f92 /api/logic/minecraft/legacy/LegacyInstance.h | |
parent | 9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b (diff) | |
download | MultiMC-ba3cbb7330fd3435423eb3a77373ca82d65681d3.tar MultiMC-ba3cbb7330fd3435423eb3a77373ca82d65681d3.tar.gz MultiMC-ba3cbb7330fd3435423eb3a77373ca82d65681d3.tar.lz MultiMC-ba3cbb7330fd3435423eb3a77373ca82d65681d3.tar.xz MultiMC-ba3cbb7330fd3435423eb3a77373ca82d65681d3.zip |
NOISSUE more work on Legacy migration
Diffstat (limited to 'api/logic/minecraft/legacy/LegacyInstance.h')
-rw-r--r-- | api/logic/minecraft/legacy/LegacyInstance.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/api/logic/minecraft/legacy/LegacyInstance.h b/api/logic/minecraft/legacy/LegacyInstance.h index 9c5cedd3..5f67cddb 100644 --- a/api/logic/minecraft/legacy/LegacyInstance.h +++ b/api/logic/minecraft/legacy/LegacyInstance.h @@ -22,6 +22,7 @@ class ModList; class LegacyModList; +class WorldList; class Task; /* * WHY: Legacy instances - from MultiMC 3 and 4 - are here only to provide a way to upgrade them to the current format. @@ -74,6 +75,7 @@ public: std::shared_ptr<LegacyModList> jarModList() const; QList<Mod> getJarMods() const; + std::shared_ptr<WorldList> worldList() const; /*! * Whether or not the instance's minecraft.jar needs to be rebuilt. @@ -95,6 +97,14 @@ public: virtual QString typeName() const override; + bool canLaunch() const override + { + return false; + } + bool canEdit() const override + { + return true; + } bool canExport() const override { return false; @@ -125,4 +135,5 @@ public: } protected: mutable std::shared_ptr<LegacyModList> jar_mod_list; + mutable std::shared_ptr<WorldList> m_world_list; }; |