GH-575 separate legacy jar mod list from mod list
This commit is contained in:
@ -20,6 +20,7 @@
|
||||
#include "LegacyInstance.h"
|
||||
|
||||
#include "minecraft/legacy/LegacyUpdate.h"
|
||||
#include "minecraft/legacy/LegacyModList.h"
|
||||
#include "launch/LaunchTask.h"
|
||||
#include <launch/steps/PostLaunchCommand.h>
|
||||
#include <launch/steps/Update.h>
|
||||
@ -274,11 +275,11 @@ std::shared_ptr<ModList> LegacyInstance::coreModList() const
|
||||
return core_mod_list;
|
||||
}
|
||||
|
||||
std::shared_ptr<ModList> LegacyInstance::jarModList() const
|
||||
std::shared_ptr<LegacyModList> LegacyInstance::jarModList() const
|
||||
{
|
||||
if (!jar_mod_list)
|
||||
{
|
||||
auto list = new ModList(jarModsDir(), modListFile());
|
||||
auto list = new LegacyModList(jarModsDir(), modListFile());
|
||||
connect(list, SIGNAL(changed()), SLOT(jarModsChanged()));
|
||||
jar_mod_list.reset(list);
|
||||
}
|
||||
|
Reference in New Issue
Block a user