summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-08-03 03:12:48 +0200
committerPetr Mrázek <peterix@gmail.com>2019-08-03 03:12:48 +0200
commit40c9af1a8b2f42f4c90c8d358eac43370c04a227 (patch)
tree4f1b2b81a9bff4645e22cbb63c9c585d060aac2c /api/logic/minecraft/legacy/LegacyUpgradeTask.cpp
parentf5f3149dcf618172539e740e12f539e96aea43ba (diff)
downloadMultiMC-40c9af1a8b2f42f4c90c8d358eac43370c04a227.tar
MultiMC-40c9af1a8b2f42f4c90c8d358eac43370c04a227.tar.gz
MultiMC-40c9af1a8b2f42f4c90c8d358eac43370c04a227.tar.lz
MultiMC-40c9af1a8b2f42f4c90c8d358eac43370c04a227.tar.xz
MultiMC-40c9af1a8b2f42f4c90c8d358eac43370c04a227.zip
NOISSUE remove dependency of legacy mod list on the Mod class
Diffstat (limited to 'api/logic/minecraft/legacy/LegacyUpgradeTask.cpp')
-rw-r--r--api/logic/minecraft/legacy/LegacyUpgradeTask.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp b/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp
index 9a832a24..9d86a7b5 100644
--- a/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp
+++ b/api/logic/minecraft/legacy/LegacyUpgradeTask.cpp
@@ -7,6 +7,7 @@
#include "LegacyInstance.h"
#include "minecraft/MinecraftInstance.h"
#include "minecraft/ComponentList.h"
+#include "LegacyModList.h"
#include "classparser.h"
LegacyUpgradeTask::LegacyUpgradeTask(InstancePtr origInstance)
@@ -96,10 +97,10 @@ void LegacyUpgradeTask::copyFinished()
components->installCustomJar(jarPath);
}
- auto jarMods = legacyInst->getJarMods();
+ auto jarMods = legacyInst->jarModList()->allMods();
for(auto & jarMod: jarMods)
{
- QString modPath = jarMod.filename().absoluteFilePath();
+ QString modPath = jarMod.absoluteFilePath();
qDebug() << "jarMod: " << modPath;
components->installJarMods({modPath});
}