MCPcopy Create free account
hub / github.com/MultiMC/Launcher / applyTo

Method applyTo

launcher/minecraft/VersionFile.cpp:18–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void VersionFile::applyTo(LaunchProfile *profile)
19{
20 // Only real Minecraft can set those. Don't let anything override them.
21 if (isMinecraftVersion(uid))
22 {
23 profile->applyMinecraftVersion(minecraftVersion);
24 profile->applyMinecraftVersionType(type);
25 // HACK: ignore assets from other version files than Minecraft
26 // workaround for stupid assets issue caused by amazon:
27 // https://www.theregister.co.uk/2017/02/28/aws_is_awol_as_s3_goes_haywire/
28 profile->applyMinecraftAssets(mojangAssetIndex);
29 }
30
31 profile->applyMainJar(mainJar);
32 profile->applyMainClass(mainClass);
33 profile->applyAppletClass(appletClass);
34 profile->applyMinecraftArguments(minecraftArguments);
35 profile->applyTweakers(addTweakers);
36 profile->applyJarMods(jarMods);
37 profile->applyMods(mods);
38 profile->applyTraits(traits);
39
40 for (auto library : libraries)
41 {
42 profile->applyLibrary(library);
43 }
44 for (auto mavenFile : mavenFiles)
45 {
46 profile->applyMavenFile(mavenFile);
47 }
48 profile->applyProblemSeverity(getProblemSeverity());
49}
50
51/*
52 auto theirVersion = profile->getMinecraftVersion();

Callers

nothing calls this directly

Calls 15

isMinecraftVersionFunction · 0.85
applyMinecraftVersionMethod · 0.80
applyMinecraftAssetsMethod · 0.80
applyMainJarMethod · 0.80
applyMainClassMethod · 0.80
applyAppletClassMethod · 0.80
applyTweakersMethod · 0.80
applyJarModsMethod · 0.80
applyModsMethod · 0.80
applyTraitsMethod · 0.80

Tested by

no test coverage detected