aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/VersionFile.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-10-08 20:12:40 +0200
committerGitHub <noreply@github.com>2022-10-08 20:12:40 +0200
commitfafc9cf9ca86fd66db09e9ccc1cdb53520fd7c16 (patch)
tree61de3976ba124736c1ad5d10f5d9c8b17537f394 /launcher/minecraft/VersionFile.cpp
parente436f471a074401be3a48f19eff577c040e9b192 (diff)
parent3111e6a7212ae914041fce6d851d7662975dc1be (diff)
downloadPrismLauncher-fafc9cf9ca86fd66db09e9ccc1cdb53520fd7c16.tar.gz
PrismLauncher-fafc9cf9ca86fd66db09e9ccc1cdb53520fd7c16.tar.bz2
PrismLauncher-fafc9cf9ca86fd66db09e9ccc1cdb53520fd7c16.zip
Merge pull request #1033 from Scrumplex/multi-arch-support
Diffstat (limited to 'launcher/minecraft/VersionFile.cpp')
-rw-r--r--launcher/minecraft/VersionFile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/minecraft/VersionFile.cpp b/launcher/minecraft/VersionFile.cpp
index a9a0f7f4..76f41600 100644
--- a/launcher/minecraft/VersionFile.cpp
+++ b/launcher/minecraft/VersionFile.cpp
@@ -51,7 +51,7 @@ static bool isMinecraftVersion(const QString &uid)
return uid == "net.minecraft";
}
-void VersionFile::applyTo(LaunchProfile *profile)
+void VersionFile::applyTo(LaunchProfile *profile, const RuntimeContext & runtimeContext)
{
// Only real Minecraft can set those. Don't let anything override them.
if (isMinecraftVersion(uid))
@@ -77,15 +77,15 @@ void VersionFile::applyTo(LaunchProfile *profile)
for (auto library : libraries)
{
- profile->applyLibrary(library);
+ profile->applyLibrary(library, runtimeContext);
}
for (auto mavenFile : mavenFiles)
{
- profile->applyMavenFile(mavenFile);
+ profile->applyMavenFile(mavenFile, runtimeContext);
}
for (auto agent : agents)
{
- profile->applyAgent(agent);
+ profile->applyAgent(agent, runtimeContext);
}
profile->applyProblemSeverity(getProblemSeverity());
}