NOISSUE Move FTB logic out of generic code
This commit is contained in:
parent
c7b39fe116
commit
8b4e22bbb8
10 changed files with 400 additions and 316 deletions
|
@ -7,6 +7,7 @@
|
|||
#include "logic/tasks/SequentialTask.h"
|
||||
#include "logic/forge/ForgeInstaller.h"
|
||||
#include "logic/forge/ForgeVersionList.h"
|
||||
#include <logic/settings/INISettingsObject.h>
|
||||
#include "MultiMC.h"
|
||||
#include "pathutils.h"
|
||||
|
||||
|
@ -93,6 +94,11 @@ void OneSixFTBInstance::copy(const QDir &newDir)
|
|||
}
|
||||
}
|
||||
}
|
||||
// now set the target instance to be plain OneSix
|
||||
INISettingsObject settings_obj(newDir.absoluteFilePath("instance.cfg"));
|
||||
settings_obj.registerSetting("InstanceType", "Legacy");
|
||||
QString inst_type = settings_obj.get("InstanceType").toString();
|
||||
settings_obj.set("InstanceType", "OneSix");
|
||||
}
|
||||
|
||||
QString OneSixFTBInstance::id() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue