GH-1016 print mods, jar mods and core mods on start

Needs some work - jar mods just have the uuid name
This commit is contained in:
Petr Mrázek
2015-05-31 09:06:24 +02:00
parent 99f248ecd4
commit 9920062003
2 changed files with 54 additions and 21 deletions

View File

@ -134,6 +134,21 @@ BaseProcess *OneSixInstance::prepareForLaunch(AuthSessionPtr session)
if (!m_version)
return nullptr;
for(auto & mod: loaderModList()->allMods())
{
launchScript += "mod " + mod.filename().absoluteFilePath() + "\n";;
}
for(auto & coremod: coreModList()->allMods())
{
launchScript += "coremod " + coremod.filename().absoluteFilePath() + "\n";;
}
for(auto & jarmod: m_version->jarMods)
{
launchScript += "jarmod " + jarmod->name + "\n";;
}
// libraries and class path.
{
auto libs = m_version->getActiveNormalLibs();