summaryrefslogtreecommitdiffstats
path: root/logic/minecraft
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-31 09:06:24 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-31 21:50:01 +0200
commit9920062003d78864be886b1ddb79e484f44bc30a (patch)
tree80f2b5f605635e312579d41308b3f6747e7aefa8 /logic/minecraft
parent99f248ecd40d7ebe79723b8a27ac188ff5c8d13b (diff)
downloadMultiMC-9920062003d78864be886b1ddb79e484f44bc30a.tar
MultiMC-9920062003d78864be886b1ddb79e484f44bc30a.tar.gz
MultiMC-9920062003d78864be886b1ddb79e484f44bc30a.tar.lz
MultiMC-9920062003d78864be886b1ddb79e484f44bc30a.tar.xz
MultiMC-9920062003d78864be886b1ddb79e484f44bc30a.zip
GH-1016 print mods, jar mods and core mods on start
Needs some work - jar mods just have the uuid name
Diffstat (limited to 'logic/minecraft')
-rw-r--r--logic/minecraft/OneSixInstance.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/logic/minecraft/OneSixInstance.cpp b/logic/minecraft/OneSixInstance.cpp
index b2b8698f..74c28a8f 100644
--- a/logic/minecraft/OneSixInstance.cpp
+++ b/logic/minecraft/OneSixInstance.cpp
@@ -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();