summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/OneSixInstance.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-31 21:45:28 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-31 21:50:01 +0200
commit6fd18a5cceb21f547fb95398215d9d30aeef0249 (patch)
tree754e3eee4c1f810eb601c26673edb95c59cbee9c /logic/minecraft/OneSixInstance.cpp
parent9920062003d78864be886b1ddb79e484f44bc30a (diff)
downloadMultiMC-6fd18a5cceb21f547fb95398215d9d30aeef0249.tar
MultiMC-6fd18a5cceb21f547fb95398215d9d30aeef0249.tar.gz
MultiMC-6fd18a5cceb21f547fb95398215d9d30aeef0249.tar.lz
MultiMC-6fd18a5cceb21f547fb95398215d9d30aeef0249.tar.xz
MultiMC-6fd18a5cceb21f547fb95398215d9d30aeef0249.zip
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
Diffstat (limited to 'logic/minecraft/OneSixInstance.cpp')
-rw-r--r--logic/minecraft/OneSixInstance.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/logic/minecraft/OneSixInstance.cpp b/logic/minecraft/OneSixInstance.cpp
index 74c28a8f..ffccc259 100644
--- a/logic/minecraft/OneSixInstance.cpp
+++ b/logic/minecraft/OneSixInstance.cpp
@@ -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.