mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 17:09:25 +00:00
GH-1016 print list of mods, coremods and jarmods
Includes a change to jar mods, where they gain an 'originalName' attribute used only for display
This commit is contained in:
@@ -136,17 +136,29 @@ BaseProcess *OneSixInstance::prepareForLaunch(AuthSessionPtr session)
|
||||
|
||||
for(auto & mod: loaderModList()->allMods())
|
||||
{
|
||||
launchScript += "mod " + mod.filename().absoluteFilePath() + "\n";;
|
||||
if(!mod.enabled())
|
||||
continue;
|
||||
if(mod.type() == Mod::MOD_FOLDER)
|
||||
continue;
|
||||
// TODO: proper implementation would need to descend into folders.
|
||||
|
||||
launchScript += "mod " + mod.filename().completeBaseName() + "\n";;
|
||||
}
|
||||
|
||||
for(auto & coremod: coreModList()->allMods())
|
||||
{
|
||||
launchScript += "coremod " + coremod.filename().absoluteFilePath() + "\n";;
|
||||
if(!coremod.enabled())
|
||||
continue;
|
||||
if(coremod.type() == Mod::MOD_FOLDER)
|
||||
continue;
|
||||
// TODO: proper implementation would need to descend into folders.
|
||||
|
||||
launchScript += "coremod " + coremod.filename().completeBaseName() + "\n";;
|
||||
}
|
||||
|
||||
for(auto & jarmod: m_version->jarMods)
|
||||
{
|
||||
launchScript += "jarmod " + jarmod->name + "\n";;
|
||||
launchScript += "jarmod " + jarmod->originalName + " (" + jarmod->name + ")\n";
|
||||
}
|
||||
|
||||
// libraries and class path.
|
||||
|
Reference in New Issue
Block a user