From ba3cbb7330fd3435423eb3a77373ca82d65681d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 20 Sep 2017 23:38:31 +0200 Subject: NOISSUE more work on Legacy migration --- api/logic/minecraft/legacy/LegacyInstance.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'api/logic/minecraft/legacy/LegacyInstance.cpp') diff --git a/api/logic/minecraft/legacy/LegacyInstance.cpp b/api/logic/minecraft/legacy/LegacyInstance.cpp index 532e8307..95cc4689 100644 --- a/api/logic/minecraft/legacy/LegacyInstance.cpp +++ b/api/logic/minecraft/legacy/LegacyInstance.cpp @@ -272,6 +272,15 @@ QString LegacyInstance::defaultCustomBaseJar() const return FS::PathCombine(binRoot(), "mcbackup.jar"); } +std::shared_ptr LegacyInstance::worldList() const +{ + if (!m_world_list) + { + m_world_list.reset(new WorldList(savesDir())); + } + return m_world_list; +} + QString LegacyInstance::typeName() const { return tr("Legacy"); -- cgit v1.2.3