From dc6340bf384d6f54f9f2793c55235b1bdd879b00 Mon Sep 17 00:00:00 2001 From: Una Date: Tue, 5 Apr 2022 23:22:24 -0700 Subject: Allow components to specify Java agents and JVM arguments (#175) --- launcher/minecraft/update/LibrariesTask.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'launcher/minecraft/update/LibrariesTask.cpp') diff --git a/launcher/minecraft/update/LibrariesTask.cpp b/launcher/minecraft/update/LibrariesTask.cpp index 667dd5d9..26679110 100644 --- a/launcher/minecraft/update/LibrariesTask.cpp +++ b/launcher/minecraft/update/LibrariesTask.cpp @@ -48,6 +48,10 @@ void LibrariesTask::executeTask() libArtifactPool.append(profile->getLibraries()); libArtifactPool.append(profile->getNativeLibraries()); libArtifactPool.append(profile->getMavenFiles()); + for (auto agent : profile->getAgents()) + { + libArtifactPool.append(agent->library()); + } libArtifactPool.append(profile->getMainJar()); processArtifactPool(libArtifactPool, failedLocalLibraries, inst->getLocalLibraryPath()); -- cgit