mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-02 03:16:58 +03:00
Add a MMC-depend field (soft/hard) for version checking
This commit is contained in:
parent
790402bdce
commit
ece826bdbc
8 changed files with 351 additions and 32 deletions
|
|
@ -63,7 +63,7 @@ bool LiteLoaderInstaller::add(OneSixInstance *to)
|
|||
OneSixLibrary launchwrapperLib("net.minecraft:launchwrapper:" + m_launcherWrapperVersionMapping[to->intendedVersionId()]);
|
||||
launchwrapperLib.finalize();
|
||||
QJsonObject lwLibObj = launchwrapperLib.toJson();
|
||||
lwLibObj.insert("insert", QString("prepend-if-not-exists"));
|
||||
lwLibObj.insert("insert", QString("prepend"));
|
||||
libraries.append(lwLibObj);
|
||||
}
|
||||
|
||||
|
|
@ -74,6 +74,7 @@ bool LiteLoaderInstaller::add(OneSixInstance *to)
|
|||
liteloaderLib.finalize();
|
||||
QJsonObject llLibObj = liteloaderLib.toJson();
|
||||
llLibObj.insert("insert", QString("prepend"));
|
||||
llLibObj.insert("MMC-depend", QString("hard"));
|
||||
libraries.append(llLibObj);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue