aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/VersionFile.cpp
diff options
context:
space:
mode:
authorUna <me@unascribed.com>2022-04-05 23:22:24 -0700
committerGitHub <noreply@github.com>2022-04-06 08:22:24 +0200
commitdc6340bf384d6f54f9f2793c55235b1bdd879b00 (patch)
treea7cab6592c4ad585e164fad3703a3b1107ae6042 /launcher/minecraft/VersionFile.cpp
parent8732bea99b44b8b6a9aa67c37e13c37659991641 (diff)
downloadPrismLauncher-dc6340bf384d6f54f9f2793c55235b1bdd879b00.tar.gz
PrismLauncher-dc6340bf384d6f54f9f2793c55235b1bdd879b00.tar.bz2
PrismLauncher-dc6340bf384d6f54f9f2793c55235b1bdd879b00.zip
Allow components to specify Java agents and JVM arguments (#175)
Diffstat (limited to 'launcher/minecraft/VersionFile.cpp')
-rw-r--r--launcher/minecraft/VersionFile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/minecraft/VersionFile.cpp b/launcher/minecraft/VersionFile.cpp
index 94fb6db7..9db30ba2 100644
--- a/launcher/minecraft/VersionFile.cpp
+++ b/launcher/minecraft/VersionFile.cpp
@@ -67,6 +67,7 @@ void VersionFile::applyTo(LaunchProfile *profile)
profile->applyMainClass(mainClass);
profile->applyAppletClass(appletClass);
profile->applyMinecraftArguments(minecraftArguments);
+ profile->applyAddnJvmArguments(addnJvmArguments);
profile->applyTweakers(addTweakers);
profile->applyJarMods(jarMods);
profile->applyMods(mods);
@@ -81,6 +82,10 @@ void VersionFile::applyTo(LaunchProfile *profile)
{
profile->applyMavenFile(mavenFile);
}
+ for (auto agent : agents)
+ {
+ profile->applyAgent(agent);
+ }
profile->applyProblemSeverity(getProblemSeverity());
}