GH-1047 World management for instances. Removal only currently.
This commit is contained in:
parent
16df6c16f3
commit
583e5946f4
15 changed files with 750 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <launch/steps/TextPrint.h>
|
||||
#include <launch/steps/CheckJava.h>
|
||||
#include "minecraft/ModList.h"
|
||||
#include "minecraft/WorldList.h"
|
||||
#include <MMCZip.h>
|
||||
|
||||
LegacyInstance::LegacyInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr settings, const QString &rootDir)
|
||||
|
@ -319,6 +320,16 @@ std::shared_ptr<ModList> LegacyInstance::texturePackList() const
|
|||
return texture_pack_list;
|
||||
}
|
||||
|
||||
std::shared_ptr<WorldList> LegacyInstance::worldList() const
|
||||
{
|
||||
if (!m_world_list)
|
||||
{
|
||||
m_world_list.reset(new WorldList(savesDir()));
|
||||
}
|
||||
m_world_list->update();
|
||||
return m_world_list;
|
||||
}
|
||||
|
||||
QString LegacyInstance::jarModsDir() const
|
||||
{
|
||||
return PathCombine(instanceRoot(), "instMods");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue